RadControls for WPF

Note

To style the predefined dialogs of the RadWindow static class, you have to call them via the overload that takes DialogParameters object as an argument. Learn more about the predefined dialogs here.

The first thing to do is to create an appropriate style that targets the RadWindow. To learn how take a look at the Styling the RadWindow topic.

After creating a style you have to pass it to the predefined dialog via the DialogParameters object and its WindowStyle property.

CopyC#
DialogParameters parameters = new DialogParameters();
parameters.WindowStyle = this.Resources[ "RadWindowStyle" ] as Style;
parameters.Content = "Hello";
RadWindow.Alert( parameters );
CopyVB.NET
Dim parameters As New DialogParameters()
parameters.WindowStyle = TryCast(Me.Resources("RadWindowStyle"), Style)
parameters.Content = "Hello"
RadWindow.Alert(parameters)

 

See Also