RadAlert
Represents a dialog alert control that provides a customizable interface for displaying alerts to the user.
The RadAlert class inherits from ContentControl and allows for the visualization of an icon with
the option to define dialog parameters. It includes an Ok event that is triggered when the user
interacts with the accept button, and it is designed to be hosted within a RadWindow. The icon
area of the dialog can be customized via the IconTemplate property. The Configure method
can be used to set up the alert's parameters and its parent window. The control also supports binding
commands for button interaction and has functionality to set a default focused button when the dialog
is displayed.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
public class RadAlert : ContentControl
Inheritance: objectRadAlert
Derived Classes:
Constructors
public RadAlert()
Fields
IconTemplateProperty
DependencyProperty
Identifies the IconTemplate dependency property.
public static readonly DependencyProperty IconTemplateProperty
Properties
Gets or sets the dialog parameters, used for initializing the alert.
public DialogParameters DialogParams { get; }
IconTemplate
DataTemplate
Gets or sets the DataTemplate of ContentPresenter that represents the icon area in the dialog.
public DataTemplate IconTemplate { get; set; }
Gets or sets the window that hosts the alert.
protected RadWindow ParentWindow { get; }
The parent window.
Methods
Configures RadAlert according to the RadWindow.
public virtual void Configure(RadWindow window, DialogParameters pars)
RadWindow in which the RadPrompt will appear.
parsDialogParametersStructure that holds all possible parameters for customizing dialog window.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
Raises the event and sets from the active theme.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
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 virtual void SetupBindingsAndCommands()
This method is called just after the template is applied and is meant to setup the default focused dialog button.
protected virtual void SetupDefaultFocusedElement()
Events
Occurs when the user presses the accept button.
public event EventHandler Ok