Hi,
I would like to display the FieldChooser for my XamTreeGrid by right clicking any column header. How do I do this? I see here there is a ShowFieldCooser command but how do I execute that by right clicking the column headers? I do not care which column was clicked, I always want the user to be able to select from all columns.
Also, how can I change the display order in the field chooser to be same as my XamTreeGrid, not alphabetically, in XAML? Or at least in MVVM ?
BR,
Hilma Maria
I have decided to write my own field selector, the link you provided only showed how to set the field order in code behind and my solution is strict MVVM. But the behavior you attached was good for opening my selector, thanks for that!
BR
<igWPF:XamTreeGrid.Resources> <Style TargetType="{x:Type igWPF:LabelPresenter}"> <EventSetter Event="PreviewMouseRightButtonDown" Handler="LB_PreviewMouseRightButtonDown"> </EventSetter> </Style> </igWPF:XamTreeGrid.Resources>
void LB_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e) { this.xtg.ShowFieldChooser(); }