增加Prism 框架
This commit is contained in:
1 parent
2cd6b8db86
commit
726eb6de16
99 files changed
+12527
No files matched your search
@@ -0,0 +1,30 @@
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Main.Test.Views;
|
||||
using Prism.Commands;
|
||||
using Prism.Services.Dialogs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Main.Test.ViewModels;
|
||||
|
||||
internal class HeaderViewModel
|
||||
{
|
||||
private readonly IDialogService _dialogService;
|
||||
|
||||
public HeaderViewModel(IDialogService dialogService)
|
||||
{
|
||||
_dialogService = dialogService;
|
||||
}
|
||||
//public ICommand ccCommand => new AsyncDelegateCommand(cc);
|
||||
|
||||
|
||||
[RelayCommand]
|
||||
private async Task cc()
|
||||
{
|
||||
_dialogService.ShowDialog(nameof(bbbDialogView));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user