In This Article

CardAutomationPeer Class

Exposes Card types to UI Automation.

public class CardAutomationPeer : ButtonAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ButtonBaseAutomationPeer ButtonAutomationPeer object

Constructors

CardAutomationPeer(Card)

Initializes a new instance of the class.

public CardAutomationPeer(Card owner)
Parameter Type Description
owner Card

The owner element.

Methods

GetAutomationControlTypeCore()

Gets the control type of the element that is associated with the UI Automation peer.

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The Button enumeration value.

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.