SelectorBarItemAutomationPeer
C# API / Fluence.Wpf.Automation
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Automation
public class SelectorBarItemAutomationPeer : ListBoxItemWrapperAutomationPeer
Exposes SelectorBarItem to UI Automation with the item's Text as its name.
Remarks: The base ListBoxItemWrapperAutomationPeer derives the name from the item's content, which a SelectorBar item leaves unused: the label lives on Text instead, following WinUI's own item surface. Without this peer a text-only item announces nothing.
Parameter owner: The SelectorBarItem represented by this automation peer.
Base type: ListBoxItemWrapperAutomationPeer (including inherited WPF and .NET members)
Constructors
SelectorBarItemAutomationPeer
public SelectorBarItemAutomationPeer(SelectorBarItem owner)
Exposes SelectorBarItem to UI Automation with the item's Text as its name.
Remarks: The base ListBoxItemWrapperAutomationPeer derives the name from the item's content, which a SelectorBar item leaves unused: the label lives on Text instead, following WinUI's own item surface. Without this peer a text-only item announces nothing.
Parameter owner: The SelectorBarItem represented by this automation peer.
Methods
GetClassNameCore
protected override string GetClassNameCore()
Documentation inherited from the ListBoxItemWrapperAutomationPeer API.
GetLocalizedControlTypeCore
protected override string GetLocalizedControlTypeCore()
Documentation inherited from the ListBoxItemWrapperAutomationPeer API.
Remarks: WinUI reports "SelectorBarItem" as the localized control type rather than letting the item fall back to the generic list-item announcement.
GetNameCore
protected override string GetNameCore()
Documentation inherited from the ListBoxItemWrapperAutomationPeer API.
Remarks: WinUI's own peer resolves the name in four steps (SelectorBarItemAutomationPeer.cpp): an explicit automation name, then Text, then the string form of the item's child content, then the control type name. This peer follows the same order, so an icon-only item still announces something.