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; }
void OnSave(object sender, EventArgs e) { optionsEdit.CopyProperties(options); Navigation.PopModalAsync(); OnOK?.Invoke(this, EventArgs.Empty); }
void btnOK_Click(object sender, RoutedEventArgs e) { optionsEdit.CopyProperties(options); DialogResult = true; }