添加Avalonia项目的demo

This commit is contained in:
fengjiayi
2025-01-01 17:49:48 +08:00
parent 6c6d493f93
commit 28df2d8fce
61 changed files with 4404 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
using Microsoft.Extensions.DependencyInjection;
using Serein.Library.Api;
using Serein.Library.Utils;
using Serein.Workbench.Avalonia.ViewModels;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Serein.Workbench.Avalonia.Custom.ViewModels
{
internal partial class MainMenuBarViewModel : ViewModelBase
{
private IFlowEnvironment flowEnvironment { get; }
public MainMenuBarViewModel()
{
flowEnvironment = App.GetService<IFlowEnvironment>();
var uiContextOperation = App.GetService<UIContextOperation>();
}
public void SaveProjectCommand()
{
flowEnvironment.SaveProject();
}
}
}