增加Prism 框架
This commit is contained in:
1 parent
2cd6b8db86
commit
726eb6de16
99 files changed
+12527
No files matched your search
@@ -0,0 +1,57 @@
|
||||
using Prism.Services.Dialogs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using Trade.Framework.Services;
|
||||
|
||||
namespace Main.Test.Views;
|
||||
|
||||
/// <summary>
|
||||
/// bbbDialogView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class bbbDialogView : UserControl
|
||||
{
|
||||
public bbbDialogView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
public class bbbDialogViewModel : IDialogAware
|
||||
{
|
||||
private readonly IUserManager _user;
|
||||
|
||||
public bbbDialogViewModel(IUserManager user)
|
||||
{
|
||||
_user = user;
|
||||
}
|
||||
public string Title => "ttt";
|
||||
|
||||
public event Action<IDialogResult> RequestClose;
|
||||
|
||||
public bool CanCloseDialog()
|
||||
{
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void OnDialogClosed()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public void OnDialogOpened(IDialogParameters parameters)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user