Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Hiding pivot areas in XamPivotGrid using XAML
posted

Hello

I've found a post that deals with hiding pivot grid areas in code:

https://www.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

Parents
  • 138253
    Offline posted

    Hello Marek,

    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.

Reply Children
No Data