Class
DialogParameters

Structure that holds all parameters for customizing dialog window.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class DialogParameters

Inheritance: objectDialogParameters

Constructors

DialogParameters()

Initializes a new instance of the DialogParameters class.

Declaration

cs-api-definition
public DialogParameters()

Properties

CancelButtonContent

Gets or sets the content in the Cancel button.

Declaration

cs-api-definition
public object CancelButtonContent { get; set; }

Property Value

object

The content in the Cancel button.

Closed

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

Declaration

cs-api-definition
public EventHandler<WindowClosedEventArgs> Closed { get; set; }

Property Value

EventHandler<WindowClosedEventArgs>

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

Content

Gets or sets the content to be displayed.

Declaration

cs-api-definition
public object Content { get; set; }

Property Value

object

The content to be displayed.

ContentStyle

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

Declaration

cs-api-definition
public Style ContentStyle { get; set; }

Property Value

Style

DefaultFocusedButton

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.

Declaration

cs-api-definition
public ResponseButton? DefaultFocusedButton { get; set; }

Property Value

ResponseButton?

DefaultPromptResultValue

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.

Declaration

cs-api-definition
public string DefaultPromptResultValue { get; set; }

Property Value

string

DialogStartupLocation

Gets or sets a WindowStartupLocation value for the predefined dialogs.

Declaration

cs-api-definition
public WindowStartupLocation DialogStartupLocation { get; set; }

Property Value

WindowStartupLocation

Header

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

Declaration

cs-api-definition
public object Header { get; set; }

Property Value

object

The object to appear in the title bar.

IconContent

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

Declaration

cs-api-definition
public object IconContent { get; set; }

Property Value

object

The content of the icon area in the title bar.

IconTemplate

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

Declaration

cs-api-definition
public DataTemplate IconTemplate { get; set; }

Property Value

DataTemplate

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

Left

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

Declaration

cs-api-definition
public double Left { get; set; }

Property Value

double

LeftOffset

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

Declaration

cs-api-definition
public double LeftOffset { get; set; }

Property Value

double

OkButtonContent

Gets or sets the content in the OK button.

Declaration

cs-api-definition
public object OkButtonContent { get; set; }

Property Value

object

The content in the OK button.

Opened

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

Declaration

cs-api-definition
public EventHandler Opened { get; set; }

Property Value

EventHandler

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

Owner

Gets or sets the Owner of the RadWindow.

Declaration

cs-api-definition
public ContentControl Owner { get; set; }

Property Value

ContentControl

Theme

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

Declaration

cs-api-definition
public Theme Theme { get; set; }

Property Value

Theme

Top

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

Declaration

cs-api-definition
public double Top { get; set; }

Property Value

double

TopOffset

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

Declaration

cs-api-definition
public double TopOffset { get; set; }

Property Value

double

WindowStyle

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

Declaration

cs-api-definition
public Style WindowStyle { get; set; }

Property Value

Style