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

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:

C#
[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

Initializes a new instance of the RadConfirm class.

C#
public RadConfirm()

Fields

ContentAreaMarginProperty

DependencyProperty

Identifies the ContentAreaMargin dependency property.

C#
public static readonly DependencyProperty ContentAreaMarginProperty

Properties

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

C#
public Thickness ContentAreaMargin { get; set; }

Methods

Configures RadConfirm according to the RadWindow specified.

C#
public override void Configure(RadWindow window, DialogParameters pars)
Parameters:windowRadWindow

RadWindow in which the RadConfirm will appear.

parsDialogParameters

Structure that holds all possible parameters for customizing dialog window.

Overrides: RadAlert.Configure(RadWindow, DialogParameters)

Raises the event.

C#
protected virtual void OnCancel(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Raises the event and sets from the active theme.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Overrides: RadAlert.OnInitialized(EventArgs)

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.

C#
protected override void SetupBindingsAndCommands()

Overrides: RadAlert.SetupBindingsAndCommands()

Events

Occurs when the user presses the cancel button.

C#
public event EventHandler Cancel