New to Telerik UI for WinFormsStart a free 30-day trial

Represents a wizard control that helps you break a complex process into separate steps, providing navigation buttons and page management capabilities.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadWizard : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadWizard...

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window...

Inherited Members RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseDown(MouseEventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseMove(MouseEventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseWheel(MouseEventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.WndProc(ref Message)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.ProcessAutoSizeChanged(bool)RadControl.IsInputKey(Keys)RadControl.GetInputElement()RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGesture...

Constructors

Initializes a new instance of the RadWizard class.

C#
public RadWizard()

Properties

Gets the command area's back button element.

C#
[Browsable(false)]
public RadButtonElement BackButton { get; }

Gets the command area's cancel button element.

C#
[Browsable(false)]
public RadButtonElement CancelButton { get; }

Gets the command area element that contains the navigation buttons.

C#
[Browsable(false)]
public WizardCommandArea CommandArea { get; }

Gets or sets the height of the command area. A negative value makes the command area autosize.

C#
public float CommandAreaHeight { get; set; }

Gets or sets the image displayed on completion pages.

C#
public Image CompletionImage { get; set; }

Gets or sets the background image shape for completion pages.

C#
[Browsable(false)]
public RadImageShape CompletionImageBackgroundShape { get; set; }

Gets the element containing the image displayed on completion pages.

C#
[Browsable(false)]
public LightVisualElement CompletionImageElement { get; }

Gets or sets the layout of the completion page image.

C#
[Browsable(false)]
public ImageLayout CompletionImageLayout { get; set; }

Gets or sets the completion page of the wizard, which is typically displayed last in the wizard sequence.

C#
public WizardCompletionPage CompletionPage { get; set; }

Gets the default size for this control.

C#
protected override Size DefaultSize { get; }

Overrides: Control.DefaultSize

Gets or sets a value indicating whether the Aero style should be applied when the control is in Wizard Aero mode.

C#
public bool EnableAeroStyle { get; set; }

Gets the command area's finish button element.

C#
[Browsable(false)]
public RadButtonElement FinishButton { get; }

Gets the command area's help button element.

C#
[Browsable(false)]
public LightVisualElement HelpButton { get; }

Gets or sets a value indicating whether the image on completion pages should be hidden.

C#
public bool HideCompletionImage { get; set; }

Gets or sets a value indicating whether the image on welcome pages should be hidden.

C#
public bool HideWelcomeImage { get; set; }

Gets or sets the mode of the wizard control, determining its visual appearance and behavior.

C#
[Browsable(true)]
public WizardMode Mode { get; set; }

Gets the command area's next button element.

C#
[Browsable(false)]
public RadButtonElement NextButton { get; }

Gets the page header element that displays the title and description of the current page.

C#
[Browsable(false)]
public WizardPageHeaderElement PageHeaderElement { get; }

Gets or sets the height of the page header. A negative value makes the page header autosize.

C#
public float PageHeaderHeight { get; set; }

Gets or sets the icon displayed in the page header.

C#
public Image PageHeaderIcon { get; set; }

Gets or sets the alignment of the page header's icon.

C#
[Browsable(false)]
public ContentAlignment PageHeaderIconAlignment { get; set; }

Gets or sets the visibility of the page header's text element.

C#
[Browsable(false)]
public ElementVisibility PageHeaderTextVisibility { get; set; }

Gets the collection of wizard pages contained in this RadWizard.

C#
[Browsable(true)]
public WizardPageCollection Pages { get; }

Gets or sets the visibility of the page header's title element.

C#
[Browsable(false)]
public ElementVisibility PageTitleTextVisibility { get; set; }

Gets or sets the currently selected wizard page.

C#
[Browsable(false)]
public WizardPage SelectedPage { get; set; }

Gets or sets the image displayed on welcome pages.

C#
public Image WelcomeImage { get; set; }

Gets or sets the background image shape for welcome pages.

C#
[Browsable(false)]
public RadImageShape WelcomeImageBackgroundShape { get; set; }

Gets the element containing the image displayed on welcome pages.

C#
[Browsable(false)]
public LightVisualElement WelcomeImageElement { get; }

Gets or sets the layout of the welcome page image.

C#
[Browsable(false)]
public ImageLayout WelcomeImageLayout { get; set; }

Gets or sets the welcome page of the wizard, which is typically displayed first in the wizard sequence.

C#
public WizardWelcomePage WelcomePage { get; set; }

Gets the RadWizardElement which encapsulates the UI representation and functionality of the control.

C#
[Browsable(false)]
public RadWizardElement WizardElement { get; }

Methods

Creates an accessibility object for this control.

C#
protected override AccessibleObject CreateAccessibilityInstance()
Returns:

AccessibleObject

A new RadWizardAccessibleObject if accessibility is enabled; otherwise, the base accessibility object.

Overrides: Control.CreateAccessibilityInstance()

Creates the child items of the wizard control, including the main wizard element.

C#
protected override void CreateChildItems(RadElement parent)
Parameters:parentRadElement

The parent element to which the child items will be added.

Overrides: RadControl.CreateChildItems(RadElement)

Releases the unmanaged resources used by the RadWizard and optionally releases the managed resources.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides: RadControl.Dispose(bool)

Determines whether the focus should go to the navigation buttons when the user presses the Left arrow key.

C#
protected virtual bool GiveFocusToNavigationButtonsLeft()
Returns:

bool

true if the focus should go to the navigation buttons; otherwise, false.

Determines whether the focus should go to the navigation buttons when the user presses the Right arrow key.

C#
protected virtual bool GiveFocusToNavigationButtonsRight()
Returns:

bool

true if the focus should go to the navigation buttons; otherwise, false.

Determines whether the focus should go to the navigation buttons when the user presses Shift and Tab.

C#
protected virtual bool GiveFocusToNavigationButtonsShiftTab()
Returns:

bool

true if the focus should go to the navigation buttons; otherwise, false.

Determines whether the focus should go to the navigation buttons when the user presses Tab.

C#
protected virtual bool GiveFocusToNavigationButtonsTab()
Returns:

bool

true if the focus should go to the navigation buttons; otherwise, false.

Raises the Cancel event.

C#
protected virtual void OnCancel(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Raises the Finish event.

C#
protected virtual void OnFinish(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Raises the Help event.

C#
protected virtual void OnHelp(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Raises the LostFocus event.

C#
protected override void OnLostFocus(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Overrides: RadControl.OnLostFocus(EventArgs)

Raises the ModeChanged event.

C#
protected virtual void OnModeChanged(ModeChangedEventArgs e)
Parameters:eModeChangedEventArgs

A ModeChangedEventArgs that contains the event data.

Raises the ModeChanging event.

C#
protected virtual void OnModeChanging(ModeChangingEventArgs e)
Parameters:eModeChangingEventArgs

A ModeChangingEventArgs that contains the event data.

Raises the Next event.

C#
protected virtual void OnNext(WizardCancelEventArgs e)
Parameters:eWizardCancelEventArgs

A WizardCancelEventArgs that contains the event data.

Raises the Previous event.

C#
protected virtual void OnPrevious(WizardCancelEventArgs e)
Parameters:eWizardCancelEventArgs

A WizardCancelEventArgs that contains the event data.

Raises the SelectedPageChanged event.

C#
protected virtual void OnSelectedPageChanged(object sender, SelectedPageChangedEventArgs e)
Parameters:senderobject

The source of the event.

eSelectedPageChangedEventArgs

A SelectedPageChangedEventArgs that contains the event data.

Raises the SelectedPageChanging event.

C#
protected virtual void OnSelectedPageChanging(object sender, SelectedPageChangingEventArgs e)
Parameters:senderobject

The source of the event.

eSelectedPageChangingEventArgs

A SelectedPageChangingEventArgs that contains the event data.

Processes a dialog key, handling navigation between wizard pages and buttons.

C#
protected override bool ProcessDialogKey(Keys keyData)
Parameters:keyDataKeys

One of the Keys values that represents the key to process.

Returns:

bool

true if the key was processed by the control; otherwise, false.

Overrides: Control.ProcessDialogKey(Keys)

Scales the control and its child controls by the specified factor.

C#
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters:factorSizeF

The factor by which the height and width of the control and its child controls is to be scaled.

specifiedBoundsSpecified

A BoundsSpecified value that specifies the bounds of the control to use when defining its size and position.

Overrides: RadControl.ScaleControl(SizeF, BoundsSpecified)

Selects the first wizard control in the tab order.

C#
protected virtual void SelectFirstWizardControl()

Selects the last wizard control in the tab order.

C#
protected virtual bool SelectLastWizardControl()
Returns:

bool

true if a control was selected; otherwise, false.

Navigates to the next wizard page in the sequence.

C#
public void SelectNextPage()

Navigates to the previous wizard page in the sequence.

C#
public void SelectPreviousPage()

Removes the event handlers for the wizard element and its child components.

C#
protected virtual void UnWireEvents()

Wires up the event handlers for the wizard element and its child components.

C#
protected virtual void WireEvents()

Events

Occurs when the Cancel command button is clicked.

C#
public event EventHandler Cancel

Occurs when the Finish command button is clicked.

C#
public event EventHandler Finish

Occurs when the Help command button is clicked.

C#
public event EventHandler Help

Occurs after the mode of the RadWizard is changed.

C#
public event ModeChangedEventHandler ModeChanged

Occurs before the mode of the RadWizard is changed.

C#
public event ModeChangingEventHandler ModeChanging

Occurs when the Next command button is clicked.

C#
public event WizardCancelEventHandler Next

Occurs when the Previous command button is clicked.

C#
public event WizardCancelEventHandler Previous

Occurs after the selected page of the RadWizard is changed.

C#
public event SelectedPageChangedEventHandler SelectedPageChanged

Occurs before the selected page of the RadWizard is changed.

C#
public event SelectedPageChangingEventHandler SelectedPageChanging