Microsoft.UI.Xaml.Automation.Peers 命名空间

定义 Microsoft UI 自动化 基础结构的支持类型。

AnimatedVisualPlayerAutomationPeer

Microsoft UI 自动化公开 AnimatedVisualPlayer 类型。

AppBarAutomationPeer

向 Microsoft UI 自动化公开 AppBar 类型。

AppBarButtonAutomationPeer

向 Microsoft UI 自动化公开 AppBarButton 类型。

AppBarToggleButtonAutomationPeer

向 Microsoft UI 自动化公开 AppBarToggleButton 类型。

AutomationPeer

提供一个基类,该基类向 Microsoft UI 自动化公开关联的所有者类的自动化对等。

AutomationPeerAnnotation

表示单个 UI 自动化注释。

AutoSuggestBoxAutomationPeer

向 Microsoft UI 自动化公开 AutoSuggestBox 类型。

BreadcrumbBarItemAutomationPeer

向 Microsoft UI 自动化公开 BreadcrumbBar 类型。

ButtonAutomationPeer

向 Microsoft UI 自动化公开按钮类型。

ButtonBaseAutomationPeer

表示用于向 Microsoft UI 自动化公开从 ButtonBase 派生的类的基类。

CalendarDatePickerAutomationPeer

向 Microsoft UI 自动化公开 CalendarDatePicker 类型。

CheckBoxAutomationPeer

向 Microsoft UI 自动化公开 CheckBox 类型。

ColorPickerSliderAutomationPeer

Microsoft UI 自动化公开 ColorPickerSlider 类型。

ColorSpectrumAutomationPeer

Microsoft UI 自动化公开 ColorSpectrum 类型。

ComboBoxAutomationPeer

向 Microsoft UI 自动化公开 ComboBox 类型。

ComboBoxItemAutomationPeer

向 Microsoft UI 自动化公开 ComboBox 中的 ComboBoxItem 内容。

ComboBoxItemDataAutomationPeer

向 Microsoft UI 自动化公开 ComboBoxItem 的数据内容。

DatePickerAutomationPeer

向 Microsoft UI 自动化公开 DatePicker 类型。

DatePickerFlyoutPresenterAutomationPeer

向 Microsoft UI 自动化公开 DatePickerFlyoutPresenter 类型。

DropDownButtonAutomationPeer

Microsoft UI 自动化公开 DropDownButton 类型。

ExpanderAutomationPeer

向 Microsoft UI 自动化公开扩展器类型。

FlipViewAutomationPeer

向 Microsoft UI 自动化公开 FlipView 类型。

FlipViewItemAutomationPeer

向 Microsoft UI 自动化公开 FlipViewItem

FlipViewItemDataAutomationPeer

向 Microsoft UI 自动化公开 FlipViewItem 的数据内容。

FlyoutPresenterAutomationPeer

向 Microsoft UI 自动化公开 FlyoutPresenter 类型。

FrameworkElementAutomationPeer

公开 FrameworkElement 派生类型 (包括) 到 Microsoft UI 自动化 的所有控件。

GridViewAutomationPeer

向 Microsoft UI 自动化公开 GridView 类型。

GridViewHeaderItemAutomationPeer

向 Microsoft UI 自动化公开 GridViewHeaderItem 类型。

GridViewItemAutomationPeer

向 Microsoft UI 自动化公开 GridViewItem

GridViewItemDataAutomationPeer

使用项的数据表示形式向 Microsoft UI 自动化公开 GridView 项,以便对等方支持滚动到具有数据感知的项。

GroupItemAutomationPeer

向 Microsoft UI 自动化公开 GroupItem

HubAutomationPeer

向 Microsoft UI 自动化公开中心类型。

HubSectionAutomationPeer

向 Microsoft UI 自动化公开 HubSection 类型。

HyperlinkButtonAutomationPeer

向 Microsoft UI 自动化公开 HyperlinkButton 类型。

ImageAutomationPeer

向 Microsoft UI 自动化公开图像类型。

InfoBarAutomationPeer

向 Microsoft UI 自动化公开 InfoBar 类型。

ItemAutomationPeer

向 Microsoft UI 自动化公开 Items 集合中的数据项。

ItemContainerAutomationPeer

Microsoft.UI.Xaml.Controls.ItemContainer Microsoft UI 自动化公开类型。

ItemsControlAutomationPeer

向 Microsoft UI 自动化公开 ItemsControl 类型。

ItemsViewAutomationPeer

Microsoft.UI.Xaml.Controls.ItemsView Microsoft UI 自动化公开类型。

ListBoxAutomationPeer

向 Microsoft UI 自动化公开 ListBox 类型。

ListBoxItemAutomationPeer

向 Microsoft UI 自动化公开 ListBoxItems 集合中的项。

ListBoxItemDataAutomationPeer

使用项的数据表示形式向 Microsoft UI 自动化公开 ListBox 项,以便对等方支持滚动到具有数据感知的项。

ListPickerFlyoutPresenterAutomationPeer

向 Microsoft UI 自动化公开 ListPickerFlyoutPresenter 类型。

ListViewAutomationPeer

向 Microsoft UI 自动化公开 ListView 类型。

ListViewBaseAutomationPeer

为派生自 ListViewBase 的类型提供 Microsoft UI 自动化对等实现的基类。

ListViewBaseHeaderItemAutomationPeer

向 Microsoft UI 自动化公开 ListViewBaseHeaderItem 类型。

ListViewHeaderItemAutomationPeer

向 Microsoft UI 自动化公开 ListViewHeaderItem 类型。

ListViewItemAutomationPeer

向 Microsoft UI 自动化公开 ListViewItem

ListViewItemDataAutomationPeer

使用项的数据表示形式向 Microsoft UI 自动化公开 ListView 项,以便对等方支持滚动到具有数据感知的项。

LoopingSelectorAutomationPeer

向 Microsoft UI 自动化公开 LoopingSelector 类型。

LoopingSelectorItemAutomationPeer

向 Microsoft UI 自动化公开 LoopingSelectorItem 类型。

LoopingSelectorItemDataAutomationPeer

向 Microsoft UI 自动化公开 LoopingSelectorItem 的数据内容。

MediaPlayerElementAutomationPeer

向 Microsoft UI 自动化公开 MediaPlayerElement 类型。

MediaTransportControlsAutomationPeer

向 Microsoft UI 自动化公开 MediaTransportControls 类型。

MenuBarAutomationPeer

Microsoft UI 自动化公开 MenuBar 类型。

MenuBarItemAutomationPeer

Microsoft UI 自动化公开 MenuBarItem 类型。

MenuFlyoutItemAutomationPeer

向 Microsoft UI 自动化公开 MenuFlyoutItem 类型。

MenuFlyoutPresenterAutomationPeer

向 Microsoft UI 自动化公开 MenuFlyoutPresenter 类型。

NavigationViewAutomationPeer

Microsoft UI 自动化公开 NavigationView 类型。

NavigationViewItemAutomationPeer

Microsoft UI 自动化公开 NavigationViewItem 类型。

NumberBoxAutomationPeer

Microsoft UI 自动化公开 NumberBox 类型。

PasswordBoxAutomationPeer

向 Microsoft UI 自动化公开 PasswordBox 类型。

PersonPictureAutomationPeer

Microsoft UI 自动化公开 PersonPicture 类型。

PickerFlyoutPresenterAutomationPeer

向 Microsoft UI 自动化公开 PickerFlyoutPresenter 类型。

PipsPagerAutomationPeer

Microsoft UI 自动化公开 PipsPager 类型。

PivotAutomationPeer

向 Microsoft UI 自动化公开透视类型。

PivotItemAutomationPeer

向 Microsoft UI 自动化公开 PivotItem 类型。

PivotItemDataAutomationPeer

向 Microsoft UI 自动化公开 PivotItem 的数据内容。

ProgressBarAutomationPeer

Microsoft UI 自动化公开 ProgressBar 类型。

ProgressRingAutomationPeer

Microsoft UI 自动化公开 ProgressRing 类型。

RadioButtonAutomationPeer

向 Microsoft UI 自动化公开 RadioButton 类型。

RadioButtonsAutomationPeer

Microsoft UI 自动化公开 RadioButtons 类型。

RangeBaseAutomationPeer

为派生自 RangeBase 的类型提供 Microsoft UI 自动化对等实现的基类。

RatingControlAutomationPeer

Microsoft UI 自动化公开 RatingControl 类型。

RepeatButtonAutomationPeer

向 Microsoft UI 自动化公开 RepeatButton 类型。

RepeaterAutomationPeer

Microsoft UI 自动化公开 ItemsRepeater 类型。

RichEditBoxAutomationPeer

向 Microsoft UI 自动化公开 RichEditBox 类型。

RichTextBlockAutomationPeer

向 Microsoft UI 自动化公开 RichTextBlock 类型。

RichTextBlockOverflowAutomationPeer

向 Microsoft UI 自动化公开 RichTextBlockOverflow 类型。

ScrollBarAutomationPeer

向 Microsoft UI 自动化公开 ScrollBar 类型。

ScrollViewerAutomationPeer

向 Microsoft UI 自动化公开 ScrollViewer 类型。

SelectorAutomationPeer

为派生自选择器的类型提供 Microsoft UI 自动化对等实现的基类。

SelectorBarItemAutomationPeer

向 Microsoft UI 自动化公开 SelectorBarItem 类型。

SelectorItemAutomationPeer

向 Microsoft UI 自动化公开选择器中的项。

SemanticZoomAutomationPeer

向 Microsoft UI 自动化公开 SemanticZoom 类型。

SliderAutomationPeer

向 Microsoft UI 自动化公开滑块类型。

SplitButtonAutomationPeer

Microsoft UI 自动化公开 SplitButton 类型。

TabViewAutomationPeer

Microsoft UI 自动化公开 TabView 类型。

TabViewItemAutomationPeer

Microsoft UI 自动化公开 TabViewItem 类型。

TeachingTipAutomationPeer

Microsoft UI 自动化公开教学提示类型。

TextBlockAutomationPeer

向 Microsoft UI 自动化公开 TextBlock 类型。

TextBoxAutomationPeer

向 Microsoft UI 自动化公开 TextBox 类型。

ThumbAutomationPeer

向 Microsoft UI 自动化公开 Thumb 类型。

TimePickerAutomationPeer

向 Microsoft UI 自动化公开 TimePicker 类型。

TimePickerFlyoutPresenterAutomationPeer

向 Microsoft UI 自动化公开 TimePickerFlyoutPresenter 类型。

ToggleButtonAutomationPeer

向 Microsoft UI 自动化公开 ToggleButton 类型。

ToggleMenuFlyoutItemAutomationPeer

向 Microsoft UI 自动化公开 ToggleMenuFlyoutItem 类型。

ToggleSplitButtonAutomationPeer

Microsoft UI 自动化公开 ToggleSplitButton 类型。

ToggleSwitchAutomationPeer

向 Microsoft UI 自动化公开 ToggleSwitch 类型。

TreeViewItemAutomationPeer

Microsoft UI 自动化公开 TreeViewItem 类型。

TreeViewItemDataAutomationPeer

Microsoft UI 自动化公开 TreeViewItem 数据类型。

TreeViewListAutomationPeer

Microsoft UI 自动化公开 TreeViewList 类型。

WebView2AutomationPeer

Microsoft UI 自动化公开 WebView2 类型。

结构

RawElementProviderRuntimeId

表示元素的运行时 ID。

枚举

AccessibilityView

声明控件应如何包含在 Microsoft UI 自动化树的不同视图中。

AutomationControlType

指定向 Microsoft UI 自动化 客户端公开的控件类型。 由 GetAutomationControlType 使用

AutomationEvents

指定元素通过关联的 AutomationPeer 引发的事件。 由 RaiseAutomationEvent 使用。

AutomationHeadingLevel

定义UI 自动化元素的标题级别。

AutomationLandmarkType

定义元素的自动化特征点类型。

AutomationLiveSetting

介绍应用 UI 中特定实时区域的通知特征。 由 GetLiveSettingAutomationProperties.LiveSetting 使用

AutomationNavigationDirection

定义 Microsoft UI 自动化 树中的导航方向。

AutomationNotificationKind

指示调用 RaiseNotificationEvent 时的通知类型

AutomationNotificationProcessing

指定通知的处理顺序。

AutomationOrientation

指定可呈现控件的方向。 值由 GetOrientation 使用。

AutomationStructureChangeType

定义 Microsoft UI 自动化 树结构中的更改类型。

PatternInterface

指定 GetPattern 方法返回的控件模式。

示例

WinUI 3 库应用包括大多数 WinUI 3 控件、特性和功能的交互式示例。 通过 Microsoft Store 获取应用,或在 GitHub 上获取源代码。

注解

WinUI 控件和其他 UI 元素实现对报告角色和值的UI 自动化支持。 可以使用UI 自动化工具来检查角色和值信息,也可以查看每个控件的 AutomationPeer 实现。 UI 自动化框架中的可用角色在 AutomationControlType 枚举中定义。 UI 自动化客户端(如辅助技术)可以通过调用UI 自动化框架通过控件的 AutomationPeer 公开的方法来获取角色信息。

另请参阅