Changing style but keeping theme

2 posts, 1 answers
  1. Tyler
    Tyler avatar
    15 posts
    Member since:
    Dec 2010

    Posted 06 May 2011 Link to this post

    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.
  2. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 11 May 2011 Link to this post

    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
  3. DevCraft banner
Back to Top