protected override void OnAppearing() { base.OnAppearing(); options = (MReviewOptions)BindingContext; options.CopyProperties(optionsEdit); BindingContext = optionsEdit; }
public ReviewOptionsDlg(Window owner, MReviewOptions options) { InitializeComponent(); SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons(); Owner = owner; this.options = options; options.CopyProperties(optionsEdit); DataContext = optionsEdit; }