6 Answers, 1 is accepted
Theme variations are set in code behind. For the VisualStudio2013 theme they are Light, Blue, Dark:
You can review this article about the specific theme for more information.
Telerik by Progress
The way to see the variation of the theme in Design time or in Expression Blend is to load the preset in a static constructor of the MainWindow and Rebild if needed:
I verified this approach in VS2012, VS2013, VS2015.
Telerik by Progress
Maybe a stupid question (or one from an absolutely newby in WPF): where exactly this preset loading has to be done in VB? (I'd really appreciate a short example in VB about how the implicit styles and Style Manager could be used in VB (I tried to apply the explanations from here ( https://docs.telerik.com/devtools/wpf/styling-and-appearance/themes-suite/common-styling-appearance-visualstudio2013-theme) and from here (https://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-setting-a-theme-overview), but without success.
In fact, what I'm trying is to apply VisualStudio2013 Dark theme to ALL controls and also to be visible in Design mde too, not only at run time
Thanks in advance,
There are no stupid questions. To achieve your requirement I would recommend you to use the Implicit Styles theming approach. This way you will get also the design-time support. To set up a VB project with UI for WPF and implicit styles you can follow the next steps. You can also check the Setting a Theme using implicit styles part of the documentation again. Before this I would recommend you to take a peek at the Xaml vs. NoXaml dlls.
- Create a new VB.NET WPF project.
- Reference the Telerik UI for WPF dlls that you will work with.
- Reference the Telerik.Windows.Themes.VisualStudio2013.dll
- Keep in mind in this case the Telerik dlls has to be referenced from the Binaries.NoXaml folder.
- Open the Application.xaml file and add the following resources there.
Note that the resources in the MergedDictionaries will vary based on the controls you are using. In general each Telerik dll that contains UI like (GridView, Chart, ScheduleView, etc.) has a corresponding .xaml file (a ResourceDictionary) with the same name (ex: Telerik.Windows.Controls.GridView.dll and Telerik.Windows.Controls.GridView.xaml).
- Now your project is ready and you can add controls in the MainWindow.xaml or a UserControl and the controls should be properly displayed.
- To apply the Dark palette you can use the constructor of the MainWindow. For example:
I hope this helps.
As a side note, if you have further questions about WPF I would ask you to open a new forum or support ticket targeting the WPF product.