Class
RadConfirm

Represents a dialog that prompts the user for confirmation, allowing the user to either proceed with the action or cancel it. Inherits from the RadAlert class and provides additional functionality like customizable margins for the content area and the ability to handle user-triggered cancel events. The dialog features dedicated buttons for "Ok" and "Cancel," and supports configuration parameters that allow further customization of the dialog appearance and behavior when shown within a RadWindow.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Navigation")]
public class RadConfirm : RadAlert

Inheritance: objectRadAlertRadConfirm

Derived Classes: RadPrompt

Inherited Members RadAlert.IconTemplatePropertyRadAlert.OnApplyTemplate()RadAlert.SetupDefaultFocusedElement()RadAlert.OnOk(EventArgs)RadAlert.DialogParamsRadAlert.IconTemplateRadAlert.ParentWindowRadAlert.Ok

Constructors

RadConfirm()

Initializes a new instance of the RadConfirm class.

Declaration

cs-api-definition
public RadConfirm()

Fields

ContentAreaMarginProperty

Identifies the ContentAreaMargin dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContentAreaMarginProperty

Field Value

DependencyProperty

Properties

ContentAreaMargin

Gets or sets the Margin of ContentPresenter that represents the content area in the dialog.

Declaration

cs-api-definition
public Thickness ContentAreaMargin { get; set; }

Property Value

Thickness

Methods

Configure(RadWindow, DialogParameters)

Configures RadConfirm according to the RadWindow specified.

Declaration

cs-api-definition
public override void Configure(RadWindow window, DialogParameters pars)

Parameters

window

RadWindow

RadWindow in which the RadConfirm will appear.

pars

DialogParameters

Structure that holds all possible parameters for customizing dialog window.

Overrides RadAlert.Configure(RadWindow, DialogParameters)

OnCancel(EventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnCancel(EventArgs e)

Parameters

e

EventArgs

The EventArgs instance containing the event data.

OnInitialized(EventArgs)

Raises the event and sets from the active theme.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Overrides RadAlert.OnInitialized(EventArgs)

SetupBindingsAndCommands()

This method is called just after the template is applied and is meant to setup the Ok and Cancel buttons. It should be removed for Q3 2011.

Declaration

cs-api-definition
protected override void SetupBindingsAndCommands()

Overrides RadAlert.SetupBindingsAndCommands()

Events

Cancel

Occurs when the user presses the cancel button.

Declaration

cs-api-definition
public event EventHandler Cancel

Event Value

EventHandler