Theme on Docking

6 posts, 1 answers
  1. Luca
    Luca avatar
    7 posts
    Member since:
    Dec 2008

    Posted 17 Mar 2009 Link to this post

    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
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 17 Mar 2009 Link to this post

    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.
  3. DevCraft banner
  4. Luca
    Luca avatar
    7 posts
    Member since:
    Dec 2008

    Posted 17 Mar 2009 Link to this post

    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
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 18 Mar 2009 Link to this post

    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.
  6. Luca
    Luca avatar
    7 posts
    Member since:
    Dec 2008

    Posted 18 Mar 2009 Link to this post

    Thank you, perfect!

    L
  7. Answer
    Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 18 Mar 2009 Link to this post

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