Custom theme for WPF Application

5 posts, 0 answers
  1. Nancy
    Nancy avatar
    4 posts
    Member since:
    Jun 2014

    Posted 07 Jul 2014 Link to this post

    Hi,

    I need to create a custom theme (With White,Gray,Blue)  for my WPF Application which has Tabs, Grids, Text Boxes and Toolbars. I would like to have it look  similar to  3rd image of Figure 1 in the link ( I need Toolar, Tab Headers,Grid Headers and Selected Rows Blue in color, with text whitish. The grid rows should have White background with black text.)
    http://www.telerik.com/help/wpf/common-styles-appearance-colorizing-metro-theme.html#seeAlsoToggle

    Can some one let me know how this can achieved. 

    I tried to apply Windows8Theme and change the colors in OnStartup() method as below:
    StyleManager.ApplicationTheme = new Windows8Theme();
    Windows8Palette.Palette.MainColor = Colors.White;
    Windows8Palette.Palette.AccentColor = Colors.Blue;
    Windows8Palette.Palette.BasicColor = Colors.Blue;
    Windows8Palette.Palette.StrongColor = Colors.White;
    Windows8Palette.Palette.MarkerColor = Colors.Blue;
    Windows8Palette.Palette.ValidationColor = Colors.Blue;
    But that does not loo good on RadGridView as the Grid headers and sort icons done show up.







  2. Nancy
    Nancy avatar
    4 posts
    Member since:
    Jun 2014

    Posted 07 Jul 2014 Link to this post

    Also, Please let me know if I can apply any third party themes for Telerik Controls.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 08 Jul 2014 Link to this post

    Hello Nancy,


    Thank you for contacting us.

    The default Foreground property of GridViewHeaders in Windows8 theme is StrongBrush. Since you have modified this color to white, you are not able to see the header content, because you have white foreground on white background. 
    You may override the default Foreground for GridViewHeaderCell, as proposed below:

    <Style TargetType="telerik:GridViewHeaderCell">
    <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
    </Style>

    This will override the default StrongBrush and will return the predefined Blue color for GridViewHeaders.

    Regards,
    Vanya Pavlova
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  5. Nancy
    Nancy avatar
    4 posts
    Member since:
    Jun 2014

    Posted 09 Jul 2014 Link to this post

    Hi Vanya,

    Please let me know if there are any third party themes available which I can use for my application.
  6. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 10 Jul 2014 Link to this post

    Hello Nancy,


    Thank you for getting back to us. 

    If you want to use some built-in theme, you should use one of the Telerik theme suite. In case some of our themes do not fit in your needs, you may apply some modifications in order to get the desired look and feel. I believe that Windows8 or our new VisualStudio2013 theme are appropriate for your scenario. 


    Regards,
    Vanya Pavlova
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready