增加DataGridEx
This commit is contained in:
1 parent
497e9f1c34
commit
499379e20b
23 files changed
+2682
-6
No files matched your search
@@ -1,4 +1,7 @@
|
||||
using Prism.Mvvm;
|
||||
using Prism.Commands;
|
||||
using Prism.Services.Dialogs;
|
||||
using Store.Management.Views;
|
||||
using Store.Management.Framework.Controls;
|
||||
using System.Windows;
|
||||
namespace Store.Management;
|
||||
@@ -8,9 +11,12 @@ public partial class MainWindow : WindowBase
|
||||
public MainWindow() => InitializeComponent();
|
||||
}
|
||||
|
||||
public class MainWindowViewModel : BindableBase
|
||||
public class MainWindowViewModel(IDialogService dialogService) : BindableBase
|
||||
{
|
||||
private string _title="TTTT";
|
||||
public DelegateCommand OpenDataGridTestCommand => field ??= new(() =>
|
||||
dialogService.ShowDialog(nameof(DataGridTestView), new DialogParameters(), _ => { }));
|
||||
|
||||
private string _title="TTTT";
|
||||
public string Title
|
||||
{
|
||||
get => _title;
|
||||
|
||||
Reference in new issue
Block a user