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)

Initializes an instance of the WizardAutomationPeer class.

public WizardAutomationPeer(Wizard owner)
Parameter Type Description
owner Wizard

Properties

Wizard

Gets the Wizard that is wrapped by this UI Automation peer.

public Wizard Wizard { get; }

Property Value

Wizard:

The Wizard that is wrapped by this UI Automation peer.

Methods

CreateItemAutomationPeer(object)

Creates a new instance of the ItemAutomationPeer class.

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

The item that is associated with this items control.

Returns

ItemAutomationPeer:

The ItemAutomationPeer for the specified item.

GetAutomationControlTypeCore()

Gets the AutomationControlType for the element that is associated with the UI Automation peer.

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

A AutomationControlType indicating the control type.

GetChildrenCore()

Gets the collection of child elements of the ItemsControl that is associated with this UI Automation peer.

protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>:

The collection of child elements.

GetClassNameCore()

Gets a human readable name that, in addition to AutomationControlType, differentiates the control represented by this AutomationPeer.

protected override string GetClassNameCore()

Returns

string:

The string that contains the name.

GetNameCore()

Gets the text string describing the element that is associated with this automation peer.

protected override string GetNameCore()

Returns

string:

The string that contains the name.

GetPattern(PatternInterface)

Gets the object that supports the specified control pattern of the element that is associated with this automation peer.

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

The PatternInterface to examine.

Returns

object:

The reference to this instance if the specified pattern is implemented; otherwise, null.