WizardPage Class
Represents a page within a Wizard control.
public class WizardPage : UIContainerControl, IUIControl, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable
- Inheritance:
- object MarshalByRefObject Component Control ScrollableControl ContainerControl UIContainerControl object
- Derived:
- WizardWelcomePage
- Implements:
- IUIControl IUIElement ILogicalTreeNode IDpiAwareElement IDisposable
Remarks
This class is used to track information relating to each page in a Wizard control.
Constructors
WizardPage()
Initializes an instance of the class.
Properties
Anchor
Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.
[Browsable(false)]
public override AnchorStyles Anchor { get; set; }
Property Value
- AnchorStyles:
A bitwise combination of the AnchorStyles values. The default is
TopandLeft.
See Also
BackButtonEnabled
The enabled state of the Back button when this page is selected.
public WizardButtonEnabledDefault BackButtonEnabled { get; set; }
Property Value
Remarks
This property should only be set at design-time.
See Also
BackButtonVisible
The visibility of the Back button when this page is selected.
public bool BackButtonVisible { get; set; }
Property Value
- bool:
trueif the button should be visible; otherwise,false.
Remarks
This property should only be set at design-time.
See Also
BackgroundFill
The page-specific BackgroundFill for the page.
public BackgroundFill? BackgroundFill { get; set; }
Property Value
See Also
ButtonContainerBackgroundFill
The page-specific BackgroundFill for the button container.
public BackgroundFill? ButtonContainerBackgroundFill { get; set; }
Property Value
See Also
CancelButtonEnabled
The enabled state of the Cancel button when this page is selected.
public WizardButtonEnabledDefault CancelButtonEnabled { get; set; }
Property Value
Remarks
This property should only be set at design-time.
See Also
CancelButtonVisible
The visibility of the Cancel button when this page is selected.
public bool CancelButtonVisible { get; set; }
Property Value
- bool:
trueif the button should be visible; otherwise,false.
Remarks
This property should only be set at design-time.
See Also
CausesValidation
Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.
[Browsable(false)]
public bool CausesValidation { get; set; }
Property Value
- bool:
trueif the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise,false. The default istrue.
See Also
Dock
Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.
[Browsable(false)]
public override DockStyle Dock { get; set; }
Property Value
Exceptions
| Type | Condition |
|---|---|
| InvalidEnumArgumentException | The value assigned is not one of the DockStyle values. |
See Also
FinishButtonEnabled
The enabled state of the Finish button when this page is selected.
public WizardButtonEnabledDefault FinishButtonEnabled { get; set; }
Property Value
Remarks
This property should only be set at design-time.
This property also controls the enabled state of the Finish button, since the Finish button is simply the Finish button with a different caption.
See Also
FinishButtonVisible
The visibility of the Finish button when this page is selected.
public bool FinishButtonVisible { get; set; }
Property Value
- bool:
trueif the button should be visible; otherwise,false.
Remarks
This property should only be set at design-time.
See Also
HelpButtonEnabled
The enabled state of the Help button when this page is selected.
public WizardButtonEnabledDefault HelpButtonEnabled { get; set; }
Property Value
Remarks
This property should only be set at design-time.
See Also
HelpButtonVisible
The visibility of the Help button when this page is selected.
public bool HelpButtonVisible { get; set; }
Property Value
- bool:
trueif the button should be visible; otherwise,false.
Remarks
This property should only be set at design-time.
See Also
InteriorPageHeaderBackgroundFill
The page-specific BackgroundFill for the header of the page if it is an interior page.
public BackgroundFill? InteriorPageHeaderBackgroundFill { get; set; }
Property Value
See Also
InteriorPageHeaderImage
The page-specific Image for the header of the page if it is an interior page.
public Image? InteriorPageHeaderImage { get; set; }
Property Value
See Also
IsInteriorPage
Indicates whether the page is an interior page.
public bool IsInteriorPage { get; set; }
Property Value
- bool:
trueif the page is an interior page; otherwise,false.
Remarks
Interior pages make use of the header and are padded from the sides of the Wizard.
Exterior pages fill the entire Wizard client area.
See Also
Location
Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.
[Browsable(false)]
public Point Location { get; set; }
Property Value
- Point:
The Point that represents the upper-left corner of the control relative to the upper-left corner of its container.
See Also
NextButtonEnabled
The enabled state of the Next button when this page is selected.
public WizardButtonEnabledDefault NextButtonEnabled { get; set; }
Property Value
Remarks
This property should only be set at design-time.
This property also controls the enabled state of the Finish button, since the Finish button is simply the Next button with a different caption.
See Also
NextButtonVisible
The visibility of the Next button when this page is selected.
public bool NextButtonVisible { get; set; }
Property Value
- bool:
trueif the button should be visible; otherwise,false.
Remarks
This property should only be set at design-time.
See Also
PageCaption
The caption displayed on the Wizard for the page.
public virtual string? PageCaption { get; set; }
Property Value
See Also
PageDescription
The description displayed on the Wizard for the page.
public virtual string? PageDescription { get; set; }
Property Value
See Also
PageTitleBarText
The title bar text displayed on a WizardDialogForm for the page.
public virtual string? PageTitleBarText { get; set; }
Property Value
See Also
Size
Gets or sets the height and width of the control.
[Browsable(false)]
public Size Size { get; set; }
Property Value
See Also
UseExtendedDoubleBuffering
Indicates whether to use extended double buffering for rendering.
protected override bool UseExtendedDoubleBuffering { get; }
Property Value
- bool:
trueif extended double buffering should be used; otherwise,false.
See Also
Visible
Gets or sets a value indicating whether the control and all its child controls are displayed.
[Browsable(false)]
public bool Visible { get; set; }
Property Value
- bool:
trueto display the control and its child controls; otherwise,false. The default istrue. When getting the value,trueis returned only if the control is visible and the parent control, if it exists, is visible.
See Also
Wizard
The Wizard, if any, that contains the page.
[Browsable(false)]
public Wizard? Wizard { get; }
Property Value
See Also
Methods
CreateControlsInstance()
Creates a new instance of the control collection for the control.
protected override Control.ControlCollection CreateControlsInstance()
Returns
- Control.ControlCollection:
A new instance of Control.ControlCollection assigned to the control.
See Also
Dispose(bool)
Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.
protected override void Dispose(bool disposing)
| Parameter | Type | Description |
|---|---|---|
| disposing | bool |
|
See Also
OnBackButtonClick(WizardPageCancelEventArgs)
Raises the BackButtonClick event.
protected virtual void OnBackButtonClick(WizardPageCancelEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | WizardPageCancelEventArgs | The event data. |
See Also
OnCancelButtonClick(EventArgs)
Raises the CancelButtonClick event.
protected virtual void OnCancelButtonClick(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
See Also
OnCreateControl()
Raises the CreateControl() method.
OnFinishButtonClick(EventArgs)
Raises the FinishButtonClick.
protected virtual void OnFinishButtonClick(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
See Also
OnHelpButtonClick(EventArgs)
Raises the HelpButtonClick event.
protected virtual void OnHelpButtonClick(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
See Also
OnLoad(EventArgs)
Raises the Load event.
protected virtual void OnLoad(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
See Also
OnMouseDown(MouseEventArgs)
Raises the MouseDown event.
protected override void OnMouseDown(MouseEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEventArgs | A MouseEventArgs that contains the event data. |
See Also
OnNextButtonClick(WizardPageCancelEventArgs)
Raises the NextButtonClick event.
protected virtual void OnNextButtonClick(WizardPageCancelEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | WizardPageCancelEventArgs | The event data. |
See Also
OnRender(PaintEventArgs)
Renders the element.
protected override void OnRender(PaintEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | PaintEventArgs | The event data. |
See Also
ProcessTabKey(bool)
Selects the next available control and makes it the active control.
protected override bool ProcessTabKey(bool forward)
| Parameter | Type | Description |
|---|---|---|
| forward | bool |
|
Returns
- bool:
trueif a control is selected; otherwise,false.
See Also
ResetBackgroundFill()
Resets the BackgroundFill property to its default value.
ResetButtonContainerBackgroundFill()
Resets the ButtonContainerBackgroundFill property to its default value.
ResetInteriorPageHeaderBackgroundFill()
Resets the InteriorPageHeaderBackgroundFill property to its default value.
ResetInteriorPageHeaderImage()
Resets the InteriorPageHeaderImage property to its default value.
ShouldSerializeBackgroundFill()
Indicates whether the BackgroundFill property should be persisted.
public virtual bool ShouldSerializeBackgroundFill()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
See Also
ShouldSerializeButtonContainerBackgroundFill()
Indicates whether the ButtonContainerBackgroundFill property should be persisted.
public virtual bool ShouldSerializeButtonContainerBackgroundFill()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
See Also
ShouldSerializeInteriorPageHeaderBackgroundFill()
Indicates whether the InteriorPageHeaderBackgroundFill property should be persisted.
public virtual bool ShouldSerializeInteriorPageHeaderBackgroundFill()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
See Also
ShouldSerializeInteriorPageHeaderImage()
Indicates whether the InteriorPageHeaderImage property should be persisted.
public virtual bool ShouldSerializeInteriorPageHeaderImage()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
See Also
ToString()
Returns the string representation of this object.
public override string ToString()
Returns
- string:
The string representation of this object.
See Also
WndProc(ref Message)
Processes Windows messages.
protected override void WndProc(ref Message m)
| Parameter | Type | Description |
|---|---|---|
| m | Message | The Windows Message to process. |
See Also
Events
BackButtonClick
Occurs when this page is selected and the Back button is clicked.
public event WizardPageCancelEventHandler? BackButtonClick
Event Type
Remarks
By default, the Wizard will move to the previous WizardPage in the
WizardPageCollection after this event fires. To cancel this behavior, set
the Cancel property of the event argument to true. Then you can use
the SelectedPage property to set the WizardPage that should
be displayed.
If an event handler is set for this event on this page, and the event is raised, it will only be raised from this WizardPage. The more general associated event on the Wizard will not be raised.
See Also
CancelButtonClick
Occurs when this page is selected and the Cancel button is clicked.
public event EventHandler? CancelButtonClick
Event Type
Remarks
Handlers of this event generally abort any currently-executing processing tasks and
close the Form containing the Wizard control.
If an event handler is set for this event on this page, and the event is raised, it will only be raised from this WizardPage. The more general associated event on the Wizard will not be raised.
See Also
FinishButtonClick
Occurs when this page is selected and the Finish button is clicked.
public event EventHandler? FinishButtonClick
Event Type
Remarks
Handlers of this event generally finish processing any remaining wizard tasks.
If an event handler is set for this event on this page, and the event is raised, it will only be raised from this WizardPage. The more general associated event on the Wizard will not be raised.
See Also
HelpButtonClick
Occurs when this page is selected and the Help button is clicked.
public event EventHandler? HelpButtonClick
Event Type
Remarks
Handlers of this event generally display help for the currently displayed wizard step.
If an event handler is set for this event on this page, and the event is raised, it will only be raised from this WizardPage. The more general associated event on the Wizard will not be raised.
See Also
Load
Occurs before the control becomes visible for the first time.
public event EventHandler? Load
Event Type
Remarks
You can use this event to perform tasks such as allocating resources used by the control.
See Also
NextButtonClick
Occurs when this page is selected and the Next button is clicked.
public event WizardPageCancelEventHandler? NextButtonClick
Event Type
Remarks
By default, the Wizard will move to the next WizardPage in the
WizardPageCollection after this event fires. To cancel this behavior, set
the Cancel property of the event argument to true. Then you can use
the SelectedPage property to set the WizardPage that should
be displayed.
If an event handler is set for this event on this page, and the event is raised, it will only be raised from this WizardPage. The more general associated event on the Wizard will not be raised.
See Also
Inherited Members
- UIContainerControl.AddPendingGraphicsInversion(Rectangle)
- UIContainerControl.AddPendingScrollOperation(Rectangle, Orientation, int)
- UIContainerControl.AddPendingScrollOperation(Rectangle, int, int)
- UIContainerControl.AddToInvalidatedRegion()
- UIContainerControl.AddToInvalidatedRegion(Rectangle)
- UIContainerControl.Arrange(Rectangle)
- UIContainerControl.ArrangeOverride(Size)
- UIContainerControl.ContainsLocation(Point)
- UIContainerControl.CreateChildren()
- UIContainerControl.DpiScaleChanged(SizeF)
- UIContainerControl.GetCursor(Point)
- UIContainerControl.HitTest(PointHitTestParameters, Func<IUIElement, PointHitTestParameters, bool>)
- UIContainerControl.HitTestRecursive(PointHitTestParameters, Func<IUIElement, PointHitTestParameters, bool>)
- UIContainerControl.Invalidate(InvalidationLevels, InvalidationTypes)
- UIContainerControl.InvalidateArrange()
- UIContainerControl.InvalidateMeasure()
- UIContainerControl.Measure(Graphics, Size)
- UIContainerControl.MeasureOverride(Graphics, Size)
- UIContainerControl.OnClick(EventArgs)
- UIContainerControl.OnDoubleClick(EventArgs)
- UIContainerControl.OnDpiChangedAfterParent(EventArgs)
- UIContainerControl.OnHandleCreated(EventArgs)
- UIContainerControl.OnLayout(LayoutEventArgs)
- UIContainerControl.OnLocationChanged(EventArgs)
- UIContainerControl.OnMouseCaptureChanged(EventArgs)
- UIContainerControl.OnMouseEnter(EventArgs)
- UIContainerControl.OnMouseHover(EventArgs)
- UIContainerControl.OnMouseLeave(EventArgs)
- UIContainerControl.OnMouseMove(MouseEventArgs)
- UIContainerControl.OnMouseUp(MouseEventArgs)
- UIContainerControl.OnMouseWheel(MouseEventArgs)
- UIContainerControl.OnPaint(PaintEventArgs)
- UIContainerControl.OnPaintBackground(PaintEventArgs)
- UIContainerControl.OnParentChanged()
- UIContainerControl.OnParentChanged(EventArgs)
- UIContainerControl.OnRenderChildElements(PaintEventArgs)
- UIContainerControl.OnResize(EventArgs)
- UIContainerControl.OnRightToLeftChanged(EventArgs)
- UIContainerControl.OnVisibleChanged(EventArgs)
- UIContainerControl.Render(PaintEventArgs)
- UIContainerControl.ResetDoubleBufferCanvas(bool)
- UIContainerControl.ResumePainting()
- UIContainerControl.SuspendPainting()
- UIContainerControl.TransformToAncestor(IUIElement)
- UIContainerControl.TransformToDescendant(IUIElement)
- UIContainerControl.UpdateCursor()
- UIContainerControl.UpdateCursor(Point)
- UIContainerControl.UpdateLayout()
- UIContainerControl.ActualHeight
- UIContainerControl.ActualWidth
- UIContainerControl.BackColor
- UIContainerControl.BackgroundImage
- UIContainerControl.CaptureMouseWhenPressed
- UIContainerControl.ClipBounds
- UIContainerControl.DesiredSize
- UIContainerControl.DpiScaleFactor
- UIContainerControl.Font
- UIContainerControl.ForeColor
- UIContainerControl.IsArrangeValid
- UIContainerControl.IsMeasureValid
- UIContainerControl.IsPaintValid
- UIContainerControl.IsRightToLeft
- UIContainerControl.LastMouseUpButton
- UIContainerControl.PaintingSuspended
- UIContainerControl.UseControlGraphicsForMeasure
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()
Extension Methods
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)