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

Theme on Docking

5 Answers 123 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Luca
Top achievements
Rank 2
Luca asked on 17 Mar 2009, 11:41 AM
Hi,

I've successfully applied themes on all my project but only for Raddocking seems doesn't work. It keeps white background for "Vista" and "Office_black".

I'm using Q1 2009.

There is a bug to fix?

Thanks,

Luca

5 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 17 Mar 2009, 03:56 PM

Hello Luca,

Which theme do you apply?
Summer Theme for RadDocking is almost identical with Vista.
If you can send us a sample project it will be much appreciated.

Thanks.


Regards,

Hristo
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Luca
Top achievements
Rank 2
answered on 17 Mar 2009, 04:12 PM
Sorry, it was my mistake.

But I have a question regards themes on WPF: i know that this is not the correct forum, but I think it should be something simple for you! :)

How I can apply theme one time for the whole WPF application INCLUDING MICROSOFT CONTROLS (Button, Labels, etc..)???


thank you in advance

Luca
0
Hristo
Telerik team
answered on 18 Mar 2009, 11:59 AM
Hi Luca,

You can set themes on specific control or application themes the same way you do it in Silverlight.
This was the main motivation for renaming Theming class in WPF and RadControl in Silverlight to StyleManager.
You can set global theme like this:
public partial class App : Application  
{  
    public App()  
    {  
        StyleManager.ApplicationTheme = ThemeManager.FromName("Vista");  
    }  

And if you want to set some theme for specific control you can do it like this:
<Window x:Class="WpfApplication12.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    Title="Window1" Height="300" Width="300">  
    <Grid> 
        <telerik:RadProgressBar Value="50" telerik:StyleManager.Theme="Summer"/>  
    </Grid> 
</Window> 

Let me know if you need more information.

Best wishes,
Hristo
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Luca
Top achievements
Rank 2
answered on 18 Mar 2009, 12:10 PM
Thank you, perfect!

L
0
Accepted
Hristo
Telerik team
answered on 18 Mar 2009, 12:16 PM
Hello Luca,

I forgot to mention that at the moment our WPF themes do not include style for Microsoft controls. We will try to provide them for the next service pack.

Regards,
Hristo
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Luca
Top achievements
Rank 2
Answers by
Hristo
Telerik team
Luca
Top achievements
Rank 2
Share this question
or