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
605
custom PivotCell style using a BasedOn
posted

Hi,

I'd like to create a custom style for the PivotCellControl style.  We are using the Infragistics themes, so when we override the style we need to supply a BasedOn such as to not lose the infragistics elements.  Typically, eg. for a XamNumericEditor, we would do something like this:

<Style TargetType="{x:Type igEditors:XamNumericEditor}"
BasedOn="{x:Static igThemes:EditorsOffice2013.XamNumericEditor}">

I'm searching around the igThemes namespace using intellisense for the PivotCellControl but can't find it anywhere.  Do you know where it is defined?  In other words, I'd like to do:

<Style x:Key="LocalPivotCellStyle" TargetType="{x:Type ig:PivotCellControl}"
BasedOn="{x:Static igThemes:??????}">

We can't really use the BasedOn="{StaticResource {x:Type igPivot:PivotCellControl}}" trick because we are using Dynamic Resources and can change the style at runtime.  thank you