In This Article

SettingsExpanderAutomationPeer Class

Exposes SettingsExpander types to UI Automation.

public class SettingsExpanderAutomationPeer : ItemsControlAutomationPeer, IScrollProvider, IExpandCollapseProvider
Inheritance:
object AutomationPeer ControlAutomationPeer ItemsControlAutomationPeer object
Implements:
IScrollProvider IExpandCollapseProvider

Constructors

SettingsExpanderAutomationPeer(SettingsExpander)

Initializes a new instance of the class.

public SettingsExpanderAutomationPeer(SettingsExpander owner)
Parameter Type Description
owner SettingsExpander

The owner.

Properties

ExpandCollapseState

Gets the state, expanded or collapsed, of the control.

public ExpandCollapseState ExpandCollapseState { get; }

Property Value

ExpandCollapseState

Remarks

WindowsIExpandCollapseProvider.ExpandCollapseState
macOSNSAccessibilityProtocol.isAccessibilityExpanded

Methods

Collapse()

Hides all nodes, controls, or content that are descendants of the control.

public void Collapse()

Remarks

WindowsIExpandCollapseProvider.Collapse
macOS Called by setting NSAccessibilityProtocol.setAccessibilityExpanded to false.

Expand()

Displays all child nodes, controls, or content of the control.

public void Expand()

Remarks

WindowsIExpandCollapseProvider.Expand
macOS Called by setting NSAccessibilityProtocol.setAccessibilityExpanded to true, by calling NSAccessibilityProtocol.accessibilityPerformPress, or by calling NSAccessibilityProtocol.accessibilityPerformShowMenu when Avalonia.Automation.Provider.IExpandCollapseProvider.ShowsMenu is true.

GetAutomationControlTypeCore()

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

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

Remarks

Gets the type of the element.

WindowsUIA_ControlTypePropertyId
macOSNSAccessibilityProtocol.accessibilityRole

GetLocalizedControlTypeCore()

Gets a human-readable localized string that represents the type of the control that is associated with this automation peer.

protected override string GetLocalizedControlTypeCore()

Returns

string

Remarks

WindowsUIA_LocalizedControlTypePropertyId (not yet implemented)
macOSNo mapping.

Inherited Members

  • ItemsControlAutomationPeer.Scroll(ScrollAmount, ScrollAmount)
  • ItemsControlAutomationPeer.SetScrollPercent(double, double)
  • ItemsControlAutomationPeer.Owner
  • ItemsControlAutomationPeer.HorizontallyScrollable
  • ItemsControlAutomationPeer.HorizontalScrollPercent
  • ItemsControlAutomationPeer.HorizontalViewSize
  • ItemsControlAutomationPeer.VerticallyScrollable
  • ItemsControlAutomationPeer.VerticalScrollPercent
  • ItemsControlAutomationPeer.VerticalViewSize
  • ItemsControlAutomationPeer.Scroller
  • ControlAutomationPeer.GetOrCreate(Control)
  • ControlAutomationPeer.CreatePeerForElement(Control)
  • ControlAutomationPeer.FromElement(Control)
  • ControlAutomationPeer.BringIntoViewCore()
  • ControlAutomationPeer.GetOrCreateChildrenCore()
  • ControlAutomationPeer.GetChildrenCore()
  • ControlAutomationPeer.GetLabeledByCore()
  • ControlAutomationPeer.GetNameCore()
  • ControlAutomationPeer.GetHelpTextCore()
  • ControlAutomationPeer.GetParentCore()
  • ControlAutomationPeer.GetVisualRootCore()
  • ControlAutomationPeer.InvalidateChildren()
  • ControlAutomationPeer.InvalidateParent()
  • ControlAutomationPeer.ShowContextMenuCore()
  • ControlAutomationPeer.TrySetParent(AutomationPeer)
  • ControlAutomationPeer.GetAcceleratorKeyCore()
  • ControlAutomationPeer.GetAccessKeyCore()
  • ControlAutomationPeer.GetAutomationIdCore()
  • ControlAutomationPeer.GetBoundingRectangleCore()
  • ControlAutomationPeer.GetClassNameCore()
  • ControlAutomationPeer.HasKeyboardFocusCore()
  • ControlAutomationPeer.IsContentElementCore()
  • ControlAutomationPeer.IsControlElementCore()
  • ControlAutomationPeer.IsEnabledCore()
  • ControlAutomationPeer.IsKeyboardFocusableCore()
  • ControlAutomationPeer.SetFocusCore()
  • ControlAutomationPeer.GetControlTypeOverrideCore()
  • ControlAutomationPeer.IsContentElementOverrideCore()
  • ControlAutomationPeer.IsControlElementOverrideCore()
  • ControlAutomationPeer.IsOffscreenCore()
  • AutomationPeer.BringIntoView()
  • AutomationPeer.GetAcceleratorKey()
  • AutomationPeer.GetAccessKey()
  • AutomationPeer.GetAutomationControlType()
  • AutomationPeer.GetAutomationId()
  • AutomationPeer.GetBoundingRectangle()
  • AutomationPeer.GetChildren()
  • AutomationPeer.GetClassName()
  • AutomationPeer.GetLabeledBy()
  • AutomationPeer.GetLocalizedControlType()
  • AutomationPeer.GetName()
  • AutomationPeer.GetHelpText()
  • AutomationPeer.GetParent()
  • AutomationPeer.GetVisualRoot()
  • AutomationPeer.HasKeyboardFocus()
  • AutomationPeer.IsContentElement()
  • AutomationPeer.IsControlElement()
  • AutomationPeer.IsEnabled()
  • AutomationPeer.IsKeyboardFocusable()
  • AutomationPeer.IsOffscreen()
  • AutomationPeer.SetFocus()
  • AutomationPeer.ShowContextMenu()
  • AutomationPeer.GetProvider<T>()
  • AutomationPeer.RaiseChildrenChangedEvent()
  • AutomationPeer.RaisePropertyChangedEvent(AutomationProperty, object, object)
  • AutomationPeer.GetProviderCore(Type)
  • AutomationPeer.EnsureEnabled()
  • AutomationPeer.ChildrenChanged
  • AutomationPeer.PropertyChanged
  • object.GetType()
  • object.MemberwiseClone()
  • object.ToString()
  • object.Equals(object)
  • object.Equals(object, object)
  • object.ReferenceEquals(object, object)
  • object.GetHashCode()

Extension Methods