Hi,
Can I hide XamPivotGrid areas?
p.e. how could I hide RowArea?
Regards,
Dimitris
in this case are you sure you have not changed the style for the control. I mean do you apply new style for contol in which the control parts are missing.
well i wrote in the function in 2 ways, and still the same , it null
this.pivotGrid.Loaded += pivotGrid_Loaded;
void pivotGrid_Loaded(object sender, RoutedEventArgs e) { ((XamPivotGrid)sender).RowsDropControl.Visibility = System.Windows.Visibility.Collapsed; ((XamPivotGrid)sender).ColumnsDropControl.Visibility = System.Windows.Visibility.Collapsed; pivotGrid.RowsDropControl.Visibility = Visibility.Collapsed; pivotGrid.ColumnsDropControl.Visibility = Visibility.Collapsed; pivotGrid.FiltersDropControl.Visibility = Visibility.Collapsed; pivotGrid.MeasuresDropControl.Visibility = Visibility.Collapsed; }
You can try to put this code in pivotGrid.Loaded event handler. Then the UI should not be null
Todor
I tried this code also
this.Loaded += (s, e) =>
{
xamPivotGrid.FiltersDropControl.Visibility = Visibility.Collapsed;
};
it shows exception with FiltersDropControl is null
Hi
I could not reproduce your issue. Could you give more details. Which version do you use, do you apply different style for pivot. About data selector you can use Blend software to retemplate whole the control and to hide any part of the control you want.