In This Article

WizardAutomationPeer Class

Exposes Wizard types to UI Automation.

public class WizardAutomationPeer : ItemsControlAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ItemsControlAutomationPeer object

Constructors

WizardAutomationPeer(Wizard)

Exposes Wizard types to UI Automation.

public WizardAutomationPeer(Wizard owner)
Parameter Type Description
owner Wizard

Properties

Wizard

The Wizard that is wrapped by this UI Automation peer.

public Wizard? Wizard { get; }

Property Value

Wizard

Methods

CreateItemAutomationPeer(object)

When overridden in a derived class, creates a new instance of the ItemAutomationPeer for a data item in the Items collection of this ItemsControl.

protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameter Type Description
item object

The data item that is associated with this ItemAutomationPeer.

Returns

ItemAutomationPeer:

The new ItemAutomationPeer created.

GetAutomationControlTypeCore()

Gets the control type for the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetAutomationControlType().

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The Custom enumeration value.

GetChildrenCore()

Gets the collection of child elements of the ItemsControl that is associated with this ItemsControlAutomationPeer. This method is called by GetChildren().

protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>:

The collection of child elements.

GetClassNameCore()

Gets the name of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClassName().

protected override string GetClassNameCore()

Returns

string:

An Empty string.

GetNameCore()

Gets the text label of the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetName().

protected override string GetNameCore()

Returns

string:

The text label of the element that is associated with this automation peer.

GetPattern(PatternInterface)

Gets the control pattern for the ItemsControl that is associated with this ItemsControlAutomationPeer.

public override object GetPattern(PatternInterface patternInterface)
Parameter Type Description
patternInterface PatternInterface

One of the enumeration values.

Returns

object:

The ScrollViewerAutomationPeer that is associated with this ItemsControlAutomationPeer.

Extension Methods