New to Telerik UI for WPFStart a free 30-day trial

Structure that holds all parameters for customizing dialog window.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class DialogParameters

Inheritance: objectDialogParameters

Constructors

Initializes a new instance of the DialogParameters class.

C#
public DialogParameters()

Properties

Gets or sets the content in the Cancel button.

C#
public object CancelButtonContent { get; set; }
Property Value:

The content in the Cancel button.

Gets or sets the method that will be called when the Closed event of the Window is fired.

C#
public EventHandler<WindowClosedEventArgs> Closed { get; set; }
Property Value:

The method that will be called when the Closed event of the Window is fired.

Gets or sets the content to be displayed.

C#
public object Content { get; set; }
Property Value:

The content to be displayed.

The style to be applied to the dialog box content. This should be Style for one of the RadAlert, RadConfirm or RadPrompt classes.

C#
public Style ContentStyle { get; set; }

Sets the default focused response button type in the dialog window. If button with such response type is present in the ControlTemplate of the dialog it will be initially focused. If button with such response type is not present - the dialog will be initially focused.

By default:

  • RadAlert has the Accept button focused.
  • RadPrompt doesn't have focused button.
  • RadConfirm has the Accept button focused.
C#
public ResponseButton? DefaultFocusedButton { get; set; }

Gets or sets the default prompt result value shown in the Prompt dialog window. The default prompt result value shown in the Prompt dialog window.

C#
public string DefaultPromptResultValue { get; set; }

DialogStartupLocation

WindowStartupLocation

Gets or sets a WindowStartupLocation value for the predefined dialogs.

C#
public WindowStartupLocation DialogStartupLocation { get; set; }

Gets or sets the object to appear in the title bar.

C#
public object Header { get; set; }
Property Value:

The object to appear in the title bar.

Gets or sets the content of the icon area in the title bar.

C#
public object IconContent { get; set; }
Property Value:

The content of the icon area in the title bar.

IconTemplate

DataTemplate

Gets or sets the DataTemplate of ContentPresenter of the icon area in the dialog.

C#
public DataTemplate IconTemplate { get; set; }
Property Value:

The the DataTemplate of ContentPresenter of the icon area in the dialog.

Gets or sets a value that represents the distance between the left of an element and the left side of the page.

C#
public double Left { get; set; }

Gets or sets an offset value for the Left position in case ofDialogStartupLocation is set to CenterParent.

C#
public double LeftOffset { get; set; }

Gets or sets the content in the OK button.

C#
public object OkButtonContent { get; set; }
Property Value:

The content in the OK button.

Gets or sets the method that will be called when the Opened event of the Window is fired.

C#
public EventHandler Opened { get; set; }
Property Value:

The method that will be called when the Opened event of the Window is fired.

Owner

ContentControl

Gets or sets the Owner of the RadWindow.

C#
public ContentControl Owner { get; set; }

Gets or sets the theme to be applied on the dialog window. The theme to be applied on the dialog window.

C#
public Theme Theme { get; set; }

Gets or sets a value that represents the distance between the top of an element and the top of the page.

C#
public double Top { get; set; }

Gets or sets an offset value for the Top position in case of DialogStartupLocation is set to CenterParent.

C#
public double TopOffset { get; set; }

The style to be applied to the RadWindow that will host the dialog box. This should be Style for the RadWindow class.

C#
public Style WindowStyle { get; set; }