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
595
Stretch PivotRowHeaderCellControl to match RowsPanel once it RowsPanel has a height set on it
posted

When we change the width of PivotRowsPanel I want all the PivotRowHeaderCell's to stretch with the PivotRowsPanel width's change. So say set a width of 200 to PivotRowsPanel which should reflect on PivotRowHeaderCellControl and for the resize happening to work fine. I have tried different ways like overriding pivotrowspanel and this doesnt seem to work. Any help would be appreciated Is this possible? 

Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello Anand,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the RowsFieldDropAreaControl and handled the SizeChanged event of the StackPanel that contains the headers. In the handler I set the header’s width based on the size of the StackPanel. Please let me know if you have further questions on this matter.

     

    Looking forward for your reply.

    XamPivotGridRowsPanel.zip
Children