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

apply theming for telerik controls

3 Answers 150 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
raghu vittal
Top achievements
Rank 1
raghu vittal asked on 22 Feb 2010, 10:33 AM
we are using telerik sp2 version but we have not get any dlls related to telerik for theming such as telerik.windows.themes.officeblack.
what we can do.please help me in this issue.

3 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 24 Feb 2010, 12:37 PM
Hi raghu vittal,

WPF themes are not in separate assemblies. The separate Themes assemblies are only for Silverlight controls. So just set the themes like this:
telerikControls:StyleManager.Theme="Vista"
More info on how you can set a global theme etc. you can find here: http://www.telerik.com/help/wpf/common-styling-apperance-setting-theme-wpf.html

Don't hesitate to contact us if you have other questions.

Greetings,
Boyan
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
Sowjanya MV
Top achievements
Rank 1
answered on 25 Feb 2010, 09:24 AM
can we apply a custom theme to the WPF application .if yes how to do that?
0
Pana
Telerik team
answered on 04 Mar 2010, 03:00 PM
Hi Sowjanya MV,

Yes we can. It's pretty much the same way we use our themes. We can set the theme through the attached property of the style manager but we can't use the theme enumeration. We use a theme defined in the resources instead:

<Grid.Resources>
    <CustomTheme:MyTheme x:Key="Theme" />
</Grid.Resources>
<telerikScheduler:RadScheduler x:Name="scheduler" telerik:StyleManager.Theme="{StaticResource Theme}" />

Or from code behind we can set application theme:

StyleManager.ApplicationTheme = new MyTheme();

To define MyTheme class you have to create class library project, in it extend telerik's Theme class and define Generic.xaml with the xaml style. There is attached project you can modify it using it as template. XAML may be easily extracted in blend.

There is some additional info that in general is for RadScheduler but describes the steps to create custom theme for our WPF controls.

Thanks for evaluating our controls.

Sincerely yours,
Panayot
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
General Discussions
Asked by
raghu vittal
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Sowjanya MV
Top achievements
Rank 1
Pana
Telerik team
Share this question
or