windows 8 funnel color

5 posts, 1 answers
  1. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 15 Apr 2015 Link to this post

    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

     

     

     

     

  2. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 16 Apr 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 16 Apr 2015 in reply to Stefan X1 Link to this post

    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

  5. Answer
    Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 20 Apr 2015 Link to this post

    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.

     
  6. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 20 Apr 2015 in reply to Stefan X1 Link to this post

    thanks stefan

     that worked great

    dco

Back to Top
UI for WPF is Visual Studio 2017 Ready