RadTaskDialogForm
Hosts a RadTaskDialogPage in a form and provides modal and non-modal display methods.
Definition
Namespace:Telerik.WinControls.UI.TaskDialog
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTaskDialogForm : RadForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadFormRadTaskDialogForm...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadTaskDialogForm class.
public RadTaskDialogForm()
Properties
Gets the task dialog control.
public RadTaskDialogControl TaskDialogControl { get; }
Methods
Attaches a page to the hosted control, binds it to this form, and updates the form size.
protected virtual void AddPage(RadTaskDialogPage page)
The page to display.
Creates the accessible object that exposes this form as a task dialog.
protected override AccessibleObject CreateAccessibilityInstance()
The task-dialog accessible object.
Overrides:
Creates the control that hosts the active task-dialog page.
Captures the active page's clicked button, then detaches the page so its destroyed event is raised.
protected override void OnClosed(EventArgs e)
The event data for the closed event.
Overrides:
Completes base show handling and enables horizontal stretching for the control root.
protected override void OnShown(EventArgs e)
The event data for the shown event.
Overrides:
Displays a non-modal RadTaskDialogForm with UI that is specified by the RadTaskDialogPage.
public RadTaskDialogButton Show(RadTaskDialogPage page, IWin32Window owner = null)
The page that is going to be displayed.
ownerIWin32WindowAn implementation of IWin32Window that will own the RadTaskDialog.
Returns:The previously clicked button if this form retains one; otherwise, null because this non-modal call returns before the user selects a button.
Displays a modal RadTaskDialogForm with UI that is specified by the RadTaskDialogPage.
public RadTaskDialogButton ShowDialog(RadTaskDialogPage page, IWin32Window owner = null)
The page that is going to be displayed.
ownerIWin32WindowAn implementation of IWin32Window that will own the RadTaskDialog.
Returns:The pressed button from the user.