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

Can't get Theme Variations working

1 Answer 88 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bart
Top achievements
Rank 1
Bart asked on 29 Dec 2014, 11:25 PM
I've just started working with Telerik UI for WPF and have been working with implicit styles. I got the implicit styles working but haven't been able to access the theme variations as detailed in the documentation. I inserted the variation code into my code-behind file as shown below:

 public partial class MainWindow : Window
    {
        public MainWindow()
        {
            //dark color variation
            VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark);
            InitializeComponent();
        }
    }

But get the following error message:

Error 1 The name 'VisualStudio2013Palette' does not exist in the current context 

Any ideas?




1 Answer, 1 is accepted

Sort by
0
Bart
Top achievements
Rank 1
answered on 29 Dec 2014, 11:35 PM
D'oh! Forgot to add 'using Telerik.Windows.Controls;'

fixed.
Tags
General Discussions
Asked by
Bart
Top achievements
Rank 1
Answers by
Bart
Top achievements
Rank 1
Share this question
or