Synchronize the Net40

This commit is contained in:
NaBian committed 2019-01-31 21:10:51 +08:00
1 parent b3c3173c46
commit ab6e2efe21
87 files changed
+2743 -349

No files matched your search

@@ -0,0 +1,23 @@
using System.Windows;
using GalaSoft.MvvmLight.Command;
using HandyControlDemo.Tools;
namespace HandyControlDemo.ViewModel
{
public class WindowDemoViewModel
{
private RelayCommand<string> _openWindowCmd;
public RelayCommand<string> OpenWindowCmd =>
_openWindowCmd ?? (_openWindowCmd = new RelayCommand<string>(OpenWindow));
private void OpenWindow(string windowTag)
{
if (AssemblyHelper.CreateInternalInstance($"Window.{windowTag}") is System.Windows.Window window)
{
window.Owner = Application.Current.MainWindow;
window.ShowDialog();
}
}
}
}