ClassRadPrompt
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:
[TelerikToolboxCategory("Navigation")]
public class RadPrompt : RadConfirm
Inheritance: objectRadAlertRadConfirmRadPrompt
Inherited Members
Constructors
RadPrompt()
Declaration
public RadPrompt()
Fields
PromptResultProperty
Identifies the PromptResult dependency property.
Declaration
public static readonly DependencyProperty PromptResultProperty
Field Value
DependencyProperty
Properties
PromptResult
Holds the result of the Prompt dialog. This is a dependency property.
Methods
Configure(RadWindow, DialogParameters)
Configures RadPrompt according to the RadWindow specified.
Declaration
public override void Configure(RadWindow window, DialogParameters pars)
Parameters
window
RadWindow in which the RadPrompt will appear.
pars
Structure that holds all possible parameters for customizing dialog window.
Overrides
OnInitialized(EventArgs)
Raises the event and sets from the active theme.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnOk(EventArgs)
Raises the event.
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
protected override void SetupBindingsAndCommands()
Overrides
SetupDefaultFocusedElement()
This method is called just after the template is applied and is meant to setup the default focused dialog button.
Declaration
protected override void SetupDefaultFocusedElement()
Overrides