In This Article

RibbonBackstageItemAutomationPeer Class

Exposes RibbonBackstage item types to UI Automation.

public class RibbonBackstageItemAutomationPeer : TabItemAutomationPeer
Inheritance:
object AutomationPeer ItemAutomationPeer SelectorItemAutomationPeer TabItemAutomationPeer object

Constructors

RibbonBackstageItemAutomationPeer(object, RibbonBackstageAutomationPeer)

Initializes a new instance of the RibbonBackstageItemAutomationPeer class.

public RibbonBackstageItemAutomationPeer(object item, RibbonBackstageAutomationPeer itemsControlAutomationPeer)
Parameter Type Description
item object

The data item in the collection that is associated with this ItemAutomationPeer.

itemsControlAutomationPeer RibbonBackstageAutomationPeer

The ItemsControlAutomationPeer that is associated with the ItemsControl that holds the data item.

Methods

GetAutomationControlTypeCore()

Gets the control type for the TabItem that is associated with this TabItemAutomationPeer. Called by GetAutomationControlType().

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The TabItem enumeration value.

GetClassNameCore()

Gets the name of the TabItem that is associated with this TabItemAutomationPeer. Called by GetClassName().

protected override string GetClassNameCore()

Returns

string:

A string that contains "TabItem".

GetLocalizedControlTypeCore()

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

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetNameCore()

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

protected override string GetNameCore()

Returns

string:

The string that contains the label. If set, this method returns the value of the System.Windows.Automation.AutomationProperties.Name property; otherwise this method will return the value of the Header property.