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