Change style

4 posts, 0 answers
  1. Fábio Witt jagnow
    Fábio Witt jagnow avatar
    14 posts
    Member since:
    Mar 2010

    Posted 20 Apr 2011 Link to this post

    Hey guys,

    We have an application that we are developing. It's style is similar to the Expression_Dark theme, but not the same, so every now and then something's need to be adjusted. I was wondering how i could change some specific parts of the timebar style without affecting the whole visual, for example, change the key TimeBar_SelectionThumb_OutBackground value in the style. I'm asking that beacuse everytime i try to edit the template of the timebar in Blend using the Expression_Dark theme some things get messy, like the slider lose it's style. Maybe i'm doing it the wrong way, but there is a way to do this?  

    Sorry for my english. If you want i can describe it better.
  2. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 26 Apr 2011 Link to this post

    Hi Fábio Witt jagnow,

    Currently styling the RadTimeBar can be done by using implicit styles, or styles that have only a target type and are set in the resources section of the control or its parents. Here is a small piece of XAML markup that changes the background color (or TimeBar_SelectionThumb_OutBackground brush) of the shade around the selection thumb:
    <telerik:RadTimeBar Height="150" PeriodStart="1-Jan-2000" PeriodEnd="1-Jan-2001">
        <telerik:RadTimeBar.Resources>
            <Style TargetType="telerik:ShadeControl">
                <Setter Property="Background" Value="Aqua" />
            </Style>
        </telerik:RadTimeBar.Resources>
        <telerik:RadTimeBar.Intervals>
            <telerik:DayInterval />
            <telerik:YearInterval />
        </telerik:RadTimeBar.Intervals>
    </telerik:RadTimeBar>

    Using Expression Blend I have edited the template of the RadTimeBar and you can find the markup that was produced in the attached file. Can you please explain in more details what are the problems that you are facing when editing the template using Blend and I will forward you report to our development team.

    Best wishes,
    Yavor Ivanov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Fábio Witt jagnow
    Fábio Witt jagnow avatar
    14 posts
    Member since:
    Mar 2010

    Posted 05 May 2011 Link to this post

    And what if i wanted to edit the template in blend seeing the ExpressionDark theme, because i don't remember the specific steps but when i tried to edit the template of the time bar in Blend, changing the theme 
    <telerik:Office_BlackTheme x:Key="Theme"/> to <telerik:Expression_DarkTheme x:Key="Theme"/> 
    It still looked like the Office_BlackTheme.
    It is just something that with the Timebar i can't achieve, but other controls like the RadComboBox i do.
    
    
  5. Sia
    Admin
    Sia avatar
    667 posts

    Posted 11 May 2011 Link to this post

    Hi Fábio Witt jagnow,

    Our current theming mechanism has limitations when trying to extract the style for different theme than the default one. As a customer you will be provided with the source files where you can get the styles from. We understand that this is not a straightforward approach and that is why we consider implementing a new theming mechanism.

    Can you please give me some more information about the RadComboBox, because I have tested it in Blend and its behavior was the same as the RadTimeBar's one?

    Please let me know if there is anything I can do for you.

    Kind regards,
    Sia
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top