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

Changing style but keeping theme

1 Answer 78 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tyler
Top achievements
Rank 1
Tyler asked on 06 May 2011, 02:30 PM
I recently was tasked with moving the tooltip to the right of the control instead of it being on top on the RadDateTimePicker. When the tooltip is on top, the tooltip tends to cover up the field above it when the user types, which is a problem. I was able to go into expression blend, make a copy of the DateTimePicker's theme, and move the popup to pop to the right instead of above. However, the control isn't blue anymore. I am using the Office_Blue theme, but it turns into a black and white theme any time I change the style of a control. Is there a way to keep the popup to the right of the control, and keep the control blue? I would rather not change the style in the silverlight theme as described here... http://www.telerik.com/help/silverlight/common-styling-apperance-modifying-built-in-theme.html because with every new release from telerik, I'll have to make the changes again. Thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dani
Telerik team
answered on 11 May 2011, 04:12 PM
Hello Tyler,

Inevetably, once you have changed the ControlTemplate of the RadDateTimePicker, you will need to maintain that customization and update it if our release contains a breaking change. The good news is - such breaking changes are very rarely introduced.

The problem you are having with the theme is that Expression Blend generates always the default theme for RadControls so the Office Blue one was ignored in your case. Basically you have made your customization upon Office Black and have applied Office Black, instead.

You could get the Office Blue theme resources from your installation folder for RadControls and Themes\OfficeBlue\Themes\Office\Blue - DateTimePicker.xaml. For your convenience, I have attached it here. Please, make your customization in that resource dictionary.


Best wishes,
Dani
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
DateTimePicker
Asked by
Tyler
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or