Hello
I've found a post that deals with hiding pivot grid areas in code:
https://es.infragistics.com/community/forums/f/retired-products-and-controls/53751/can-i-hide-pivotgrid-areas
xamPivotGrid.RowsDropControl.Visibility = Visibility.Collapsed; xamPivotGrid.ColumnsDropControl.Visibility = Visibility.Collapsed; xamPivotGrid.FiltersDropControl.Visibility = Visibility.Collapsed; xamPivotGrid.MeasuresDropControl.Visibility = Visibility.Collapsed;
How can this be achieved in XAML?
Regards
Marek
Hello Marek,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan
That worked very well. Thank you.
Thank you for your post. I have been looking into it and I can suggest you add the following Styles to your XamPivotGrid’s Resources in order to achieve the same functionality:
<Style TargetType="{x:Type igPrim:RowsFieldDropAreaControl}"> <Setter Property="Visibility" Value="Collapsed"/> </Style> <Style TargetType="{x:Type igPrim:ColumnsFieldDropAreaControl}"> <Setter Property="Visibility" Value="Collapsed"/> </Style> <Style TargetType="{x:Type igPrim:FiltersFieldDropAreaControl}"> <Setter Property="Visibility" Value="Collapsed"/> </Style> <Style TargetType="{x:Type igPrim:MeasuresFieldDropAreaControl}"> <Setter Property="Visibility" Value="Collapsed"/> </Style>
Please let me know if you have further questions on this matter.
Looking forward for your reply.