Hi ,
I would like to rotate the text of the column headers of xampivotgrid by 90 degrees.
I tried but alignment of the column goes for a toss
<Style x:Key="RotateColumnHeaderStyle" TargetType="ig:PivotColumnHeaderCellControl" >
<Setter Property="RenderTransform">
<Setter.Value> <RotateTransform Angle="90" /> </Setter.Value> </Setter> </Style>
Please someone send me a sample for working this out.
Thanks in advance Rakesh
Hi
Its done :) I worked it out by using below style, i needed to use layouttransform instead of rendertransform
<Style x:Key="RotateColumnHeaderStyle" TargetType="ig:PivotColumnHeaderCellControl">
<Setter Property="LayoutTransform">
Rakesh,
Thank you for sharing your solution. In this case LayoutTransform is correct because the parent element needs to adjust its size. There are more details on when it is appropriate to use a LayoutTransform or a RenderTransform in the Transforming a FrameworkElement section of the Transform Overview topic on MSDN.