ViewPort text style/color

2 posts, 0 answers
  1. Dan
    Dan avatar
    22 posts
    Member since:
    Jun 2011

    Posted 10 Feb 2012 Link to this post

    How do you change the viewport header text style/color?
  2. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 15 Feb 2012 Link to this post

    Hi Dan,

    To achieve this you'll need to copy the default styles of the control and modify it.
    Here's how you can achieve this with Metro Theme step-by-step:

    1. Extract the RadTimeBar template through Blend. To learn how refer to the Editing Control Templates in Expression Blend topic.

    2. Add the Metro theme as Resource in your application. The Silverlight themes are located in separate assemblies in order the size of the control assembly to be optimized. The WPF themes are embedded in the control assemblies.

    3. Your new Style should be based on the Metro Theme using the BasedOn property. When you use this property, the new style will inherit the values of the original style that are not explicitly redefined in the new style.

    4. Delete the Theme property setting from the ItemContainer of the RadTimeBar Style

    5. Extract the default ItemControl style through Blend (to learn how refer to 1.)

    6. Edit the ItemControl style as you need and add it as implicit style in your application.

    Please note that you'll need to use the latest Official binaries from Q1 2012 to achieve this.

    Regards,
    Evgenia
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top