Class ItemAccessibilityPeer

Namespace
Forma
Assembly
Forma.dll
public sealed class ItemAccessibilityPeer : AccessibilityPeer
Inheritance
ItemAccessibilityPeer
Inherited Members

Properties

Actions

public override AccessibilityActions Actions { get; }

Property Value

AccessibilityActions

AutomationId

Always empty: an automation id is author-assigned to a control, and an item is data rather than a control. Items are addressed by role, name or index.

public override string AutomationId { get; }

Property Value

string

Bounds

public override Rectangle Bounds { get; }

Property Value

Rectangle

Children

public override IReadOnlyList<AccessibilityPeer> Children { get; }

Property Value

IReadOnlyList<AccessibilityPeer>

Id

This item's own identity, not the owning items control's: every item is a distinct node, and a snapshot keyed by id would otherwise collapse them all onto the list itself. Allocated once per slot, and slots outlive scrolling, so it is stable while realized.

public override int Id { get; }

Property Value

int

Index

public int Index { get; }

Property Value

int

IsVirtual

Whether this peer describes something that is not a control — a virtualized list row, a menu entry — and therefore has to be published by its owner.

The tree walk reaches real controls on its own, so publishing those twice would list every control once as a child and once as a peer. Virtual peers are the ones with no control to be reached through.

public override bool IsVirtual { get; }

Property Value

bool

Item

public object Item { get; }

Property Value

object

Name

public override string Name { get; }

Property Value

string

Role

public override AccessibilityRole Role { get; }

Property Value

AccessibilityRole

States

public override AccessibilityStates States { get; }

Property Value

AccessibilityStates