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

apply visualstudio2013 theme

1 Answer 91 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Sang-Oh
Top achievements
Rank 1
Sang-Oh asked on 02 Oct 2014, 10:56 AM
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?

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 06 Oct 2014, 12:46 PM
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.

 
Tags
TimeBar
Asked by
Sang-Oh
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or