Merge pull request #344 from HandyOrg/pr/339

Pr/339
This commit is contained in:
NaBian authored and GitHub committed 2020-03-29 23:59:17 +08:00
commit 62190db4bc
11 files changed
+86 -45

No files matched your search

@@ -29,12 +29,19 @@ namespace HandyControlDemo.ViewModel
#endif
}
public RelayCommand ShowTextCmd => new Lazy<RelayCommand>(() =>
new RelayCommand(ShowText)).Value;
public RelayCommand<FrameworkElement> ShowTextCmd => new Lazy<RelayCommand<FrameworkElement>>(() =>
new RelayCommand<FrameworkElement>(ShowText)).Value;
private void ShowText()
private void ShowText(FrameworkElement element)
{
Dialog.Show(new TextDialog());
if (element == null)
{
Dialog.Show(new TextDialog());
}
else
{
Dialog.Show(new TextDialog(), MessageToken.DialogContainer);
}
}
#if netle40