This is a migrated thread and some comments may be shown as answers.

windows 8 funnel color

4 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
David Ocasio asked on 15 Apr 2015, 07:10 PM

I set the theme for my windows 8 desktop app like so.

StyleManager.ApplicationTheme= new Windows8TouchTheme();

I have changed the default fontsize , background , and foreground for my header cells and row like so:

<Style TargetType="{x:Type telerik:GridViewHeaderCell}">
    <Setter Property="FontSize" Value="24"/>
    <Setter Property="Background" Value="#FF407FCB" />
    <Setter Property="Foreground" Value="White" />
</Style>
<Style TargetType="{x:Type telerik:GridViewHeaderRow}">
    <Setter Property="FontSize" Value="24"/>
    <Setter Property="Background" Value="#FF407FCB" />
    <Setter Property="Foreground" Value="White" />
</Style>
 

But unfortunately the "funnel surrounded by circle" filter button is still the default grey.

Is there a simple way to affect this.

Do I really have to extract the whole template just to set the color of the funnel ?

Any help would be appreciated

thanks

dco

 

 

 

 

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Apr 2015, 04:49 PM
Hello David ,

Since you are using StyleManager to apply the Windows8 Theme, you need to extract the ControlTemplate of the FilteringDropDown Button  in order to customize it. You can check the Editing Control Templates documentation article for more information on that matter.

After modifying the ControlTemplate you can apply it via style:
<Style TargetType="telerik:FilteringDropDown">
    <Setter Property="Template" Value="{StaticResource DistinctFilterControlTemplate}"/>
</Style>

Please find attached a sample project illustrating the approach and let me know how it works for you.

Best Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 16 Apr 2015, 08:57 PM

Can you change your example to windowstouch8 ... instead of windows8.

There's a hell of a lot of templates for the gridview and grabbing the right one from the files without a roadmap I find difficult.

thanks

dco

0
Accepted
Stefan
Telerik team
answered on 20 Apr 2015, 12:55 PM
Hello David ,

Please find attached the modified sample project from my previous post. I have applied Windows8TouchTheme as per your request.

I hope this fulfills your requirements.

Best Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 20 Apr 2015, 01:30 PM

thanks stefan

 that worked great

dco

Tags
GridView
Asked by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Stefan
Telerik team
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or