protected override void OnAppearing()
 {
     base.OnAppearing();
     vmDetail       = (PhrasesLangDetailViewModel)BindingContext;
     BindingContext = vmDetail.ItemEdit;
     vmDetail.ItemEdit.Save.WhenFinishedExecuting().Subscribe(_ => Navigation.PopModalAsync());
 }
 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;
 }