public PhrasesUnitBatchEditDlg(Window owner, PhrasesUnitViewModelWPF vm)
 {
     InitializeComponent();
     SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons();
     Owner              = owner;
     DataContext        = vmBatch = new PhrasesUnitBatchEditViewModel(vm);
 }
 protected override void OnAppearing()
 {
     base.OnAppearing();
     vmBatch = (PhrasesUnitBatchEditViewModel)BindingContext;
 }