Class
RadPrompt

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:

cs-api-definition
[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

RadPrompt()

Declaration

cs-api-definition
public RadPrompt()

Fields

PromptResultProperty

Identifies the PromptResult dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PromptResultProperty

Field Value

DependencyProperty

Properties

PromptResult

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

Declaration

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

Property Value

string

Methods

Configure(RadWindow, DialogParameters)

Configures RadPrompt according to the RadWindow specified.

Declaration

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

Parameters

window

RadWindow

RadWindow in which the RadPrompt will appear.

pars

DialogParameters

Structure that holds all possible parameters for customizing dialog window.

Overrides RadConfirm.Configure(RadWindow, DialogParameters)

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

OnOk(EventArgs)

Raises the event.

Declaration

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

Parameters

e

EventArgs

The EventArgs instance containing the event data.

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

SetupDefaultFocusedElement()

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

Declaration

cs-api-definition
protected override void SetupDefaultFocusedElement()

Overrides RadAlert.SetupDefaultFocusedElement()