RadControls for WPF

You can set the theme of the RadWindow to one of the predefined themes for the RadControls for Silverlight or you can create your own custom theme. Read the Creating a Custom Theme, Modifying a Built-In Theme and Setting a Theme topics for more information.

To set the theme of the RadWindow use the StyleManager.Theme attached property. Here is a simple example of setting the theme of the RadWindow to one of the built-in ones.

CopyXAML
RadWindow radWindow = new RadWindow();
StyleManager.SetTheme( radWindow, new VistaTheme() );
CopyVB.NET
Dim radWindow As New RadWindow()
StyleManager.SetTheme(radWindow, New VistaTheme())

If you have your RadWindow as an user control, you can do the following:

Tip
To learn more about how to use the RadWindow as user control read this topic.
CopyXAML
<telerik:RadWindow x:Class="RadWindowSamples.RadWindowControl"
                   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"
                   telerik:StyleManager.Theme="Vista">
</telerik:RadWindow>

Here is a snapshot of the result.

 

See Also