Hey!I'd like to track a list of fields that were added from the FieldChooser for WPF Xamdatagrid. I'm looking for an event that I can intercept to let me know what field has been added from the FieldChooser. Any suggestions? Thanks!
private void grd_FieldChooserOpening(object sender, FieldChooserOpeningEventArgs e) { FieldChooser fieldChooser = e.FieldChooser; fieldChooser.FieldDisplayOrder = FieldChooserDisplayOrder.SameAsDataPresenter; }
I created a work-around by wiring in to the PropertyChanged event of the fields I am concerned with and look for Visibility.
f.PropertyChanged += (sender, args) => { if (args.PropertyName == "Visibility") { if (sender is Field) { if ((sender as Field).Visibility == Visibility.Visible) { // Do something } else { // Do something else } } } };
/bump