void btnAdd_Click(object sender, RoutedEventArgs e) { var dlg = new WordsLangDetailDlg(Window.GetWindow(this), vm, vm.NewLangWord()); dlg.ShowDialog(); }
async void ToolbarItemAdd_Clicked(object sender, EventArgs e) { await Shell.Current.GoToModalAsync(nameof(WordsLangDetailPage), new WordsLangDetailViewModel(vm, vm.NewLangWord())); }