public PhrasesUnitDetailDlg(Window owner, PhrasesUnitViewModelWPF vm, MUnitPhrase item, int wordid)
 {
     InitializeComponent();
     SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons();
     tbPhrase.Focus();
     Owner                 = owner;
     vmDetail              = new PhrasesUnitDetailViewModel(vm, item, wordid);
     DataContext           = vmDetail.ItemEdit;
     dgPhrases.DataContext = vmDetail.vmSinglePhrase;
 }
示例#2
0
 async Task Edit(MUnitPhrase item) =>
 await Shell.Current.GoToModalAsync(nameof(PhrasesUnitDetailPage), new PhrasesUnitDetailViewModel(vm, item, 0));