public PhrasesLangDetailDlg(Window owner, PhrasesLangViewModel vm, MLangPhrase item) { InitializeComponent(); SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons(); tbPhrase.Focus(); Owner = owner; vmDetail = new PhrasesLangDetailViewModel(vm, item); DataContext = vmDetail.ItemEdit; dgPhrases.DataContext = vmDetail.vmSinglePhrase; }
async Task Edit(MLangPhrase item) => await Shell.Current.GoToModalAsync(nameof(PhrasesLangDetailPage), new PhrasesLangDetailViewModel(vm, item));