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

Represents a dialog that prompts the user for input. Inherits from RadConfirm and includes a text box for user input. This class exposes a PromptResult property, which holds the result of the user's input, and allows customization of the dialog window through the Configure method. The SetupBindingsAndCommands method binds the text box to the PromptResult property, enabling two-way data binding. The class is designed for use in applications utilizing the Telerik UI components and handles initialization and styling specific to either WPF or non-WPF platforms. This class also raises an Ok event, allowing for handling of user confirmation.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
public class RadPrompt : RadConfirm

Inheritance: objectRadAlertRadConfirmRadPrompt

Inherited Members RadConfirm.ContentAreaMarginPropertyRadConfirm.OnCancel(EventArgs)RadConfirm.ContentAreaMarginRadConfirm.CancelRadAlert.IconTemplatePropertyRadAlert.OnApplyTemplate()RadAlert.DialogParamsRadAlert.IconTemplateRadAlert.ParentWindowRadAlert.Ok...

Constructors

C#
public RadPrompt()

Fields

PromptResultProperty

DependencyProperty

Identifies the PromptResult dependency property.

C#
public static readonly DependencyProperty PromptResultProperty

Properties

Holds the result of the Prompt dialog. This is a dependency property.

C#
public string PromptResult { get; set; }

Methods

Configures RadPrompt according to the RadWindow specified.

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

RadWindow in which the RadPrompt will appear.

parsDialogParameters

Structure that holds all possible parameters for customizing dialog window.

Overrides: RadConfirm.Configure(RadWindow, DialogParameters)

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: RadConfirm.OnInitialized(EventArgs)

Raises the event.

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

The EventArgs instance containing the event data.

Overrides: RadAlert.OnOk(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: RadConfirm.SetupBindingsAndCommands()

This method is called just after the template is applied and is meant to setup the default focused dialog button.

C#
protected override void SetupDefaultFocusedElement()

Overrides: RadAlert.SetupDefaultFocusedElement()