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

Change style

3 Answers 189 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fábio Witt jagnow
Top achievements
Rank 2
Fábio Witt jagnow asked on 20 Apr 2011, 04:40 PM
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.

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 26 Apr 2011, 08:52 AM
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
0
Fábio Witt jagnow
Top achievements
Rank 2
answered on 05 May 2011, 10:20 PM
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.


0
Sia
Telerik team
answered on 11 May 2011, 09:48 AM
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
Tags
TimeBar
Asked by
Fábio Witt jagnow
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Fábio Witt jagnow
Top achievements
Rank 2
Sia
Telerik team
Share this question
or