Is there any simple way to add hyperlinks to PivotHeaderCell. I noticed that there is no direct way to add one.
I am using WPF 11.1
Thanks
Sangeetha
Hello Sangeetha,
To add the hyperlinks in the rowheaders for example you can retemplate its default style. You can find the default styles installed on your computer in the file C:\Program Files (x86)\Infragistics\NetAdvantage 2011.1\WPF DV\DefaultStyles\XamPivotGrid\Classic.xaml . I believe that you can modify the ContentTemplate for the ContentPresenter named “HeaderPresenter” like this:
<DataTemplate x:Key="SummaryValueKey">
<StackPanel Orientation="Horizontal">
<TextBlock >
<Hyperlink>
<TextBlock Text="{Binding}"/>
</Hyperlink>
</TextBlock>
</StackPanel>
</DataTemplate>
Please find the attached sample where I show you this possible approach to achieve the desired functionality. I placed the modified default styles in the App.xaml file.
If you need any further assistance on this please do not heasitate to ask.
Hi,
there is ColumnHeaderStyle property for XamPivotGrid which allows you to restyle PivotColumnHeaderCellControl. There is such property and for rows.
Hope that this can help you.
Regards,
Dimitrina