async void ToolbarItemAdd_Clicked(object sender, EventArgs e) { await Shell.Current.GoToModalAsync(nameof(PhrasesLangDetailPage), new PhrasesLangDetailViewModel(vm, vm.NewLangPhrase())); }
void btnAdd_Click(object sender, RoutedEventArgs e) { var dlg = new PhrasesLangDetailDlg(Window.GetWindow(this), vm, vm.NewLangPhrase()); dlg.ShowDialog(); }