apply visualstudio2013 theme

2 posts, 0 answers
  1. Sang-Oh
    Sang-Oh avatar
    1 posts
    Member since:
    Oct 2014

    Posted 02 Oct 2014 Link to this post

    I want to apply visualstudio2013 theme in my app.

    this is my code,

    public ProcessMonitor()
    {
            Telerik.Windows.Controls.VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark);
            InitializeComponent();
    }

    But, not applied.

    What should I do?
  2. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 06 Oct 2014 Link to this post

    Hello Sang-Oh,

    This is the right way to set color variation for VisualStudio2013 theme. However it requires that you have already added reference to NoXAML binaries in your project. After you add reference you'll have to merge the needed implicit style files globally in App.xaml. For RadTimeBar control with VS2013 theme these files are:

    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/System.Windows.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml"/>             
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>

    By default you'll see RadTimeBar control with VisualStudio2013 Light variation. If you want to change this, you might set the code-line you mentioned in code-behind:

    VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark);

    Please mind that all these steps are written and described in our documentation, more specifically in Implicit Styles help topic and VisualStudio2013 Theme help topic.

    Regards,
    Evgenia
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
Back to Top