We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PivotGridControl Theme

Hi.

I'm trying to override PivotGridControl to define my own behavior, but I have problems with styles. 

See attached sample...

Why the style of MyPivotGridControl is different from PivotGridControl?

Thanks.
Regards,
Juraj



Attachment: OlapTest_d83bf478.zip

3 Replies

SC Saranya Chandrasekaran Syncfusion Team March 9, 2016 05:26 AM UTC

Hi Juraj,

Thank you for providing the sample.

We have modified the given sample to resolve the reported problem – “style of MyPivotGridControl is different from PivotGridControl”. Please refer the sample from the following link.

Sample Link:
http://www.syncfusion.com/downloads/support/forum/123311/ze/OlapTest1673855428

In this sample, we have removed the VisualStyle applied to PivotGrid control.

Regards,
Saranya C.


JT Juraj Tomana March 9, 2016 11:34 AM UTC

Hi.

Thanks, but I don't understand, why when I set 

sfshared:SkinStorage.VisualStyle="Office2010Blue"

for MainWindow, syncfusion:PivotGridControl looks differently from MyPivotGridControl (see attached screenshot). 

In Themes\Generic.xaml I have defined:
<Style TargetType="controls:MyPivotGridControl" BasedOn="{StaticResource {x:Type syncfusion:PivotGridControl}}"/>


Thanks.
Regards,
Juraj

Attachment: Image_6_d7607658.zip


SC Saranya Chandrasekaran Syncfusion Team March 10, 2016 12:37 PM UTC

Hi Juraj,

We have modified the given sample to apply style to the derived PivotGridControl. Please refer to the sample from the following link.

Sample Link:

http://www.syncfusion.com/downloads/support/forum/123311/ze/OlapTest1278056495

NOTE:

We have set ResourceReference to the derived PivotGridControl, since our SkinManager ignores to apply Resource reference for any derived controls.

Regards,
Saranya C.

Loader.
Up arrow icon