UI Automation Support for Standard Controls

 
System_CAPS_ICON_note.jpg Note

This documentation is intended for .NET Framework developers who want to use the managed UI Automation classes defined in the System.Windows.Automation namespace. For the latest information about UI Automation, see Windows Automation API: UI Automation.

This topic contains information about Microsoft UI Automation support for standard controls in applications developed for the WPF, Win32, and Windows Forms frameworks.

All WPF control elements that provide information or support for user interaction have full native support for UI Automation. Other elements, such as panels, are not visible to UI Automation.

Most Win32 controls are exposed to Microsoft UI Automation through client-side providers in UIAutomationClientsideProviders.dll. This assembly is automatically registered for use with UI Automation client applications.

Full support is provided only for controls from version 6 of ComCtrl32.dll (available with Microsoft Windows XP and later).

The following controls are supported.

Class nameControl Type
ButtonButton
ButtonRadioButton
ButtonGroup
ButtonCheckBox
ButtonHyperlink
ButtonSplitButton
ButtonCheckBox
ComboBoxEx32ComboBox
ComboBoxComboBox
EditDocument
EditEdit
SysLinkHyperlink
StaticText
StaticImage
SysIPAddress32Custom
SysHeader32Header/HeaderItem
SysListView32DataGrid
SysListView32List
ListBoxList
ListBoxListItem
#32768Menu
#32768MenuItem
msctls_progress32ProgressBar
RichEditDocument. See note.
RichEdit20ADocument
RichEdit20WDocument
RichEdit50WDocument
ScrollBarSlider
msctls_trackbar32Slider
msctls_updown32Spinner
msctls_statusbar32StatusBar
SysTabControl32Tab
SysTabControl32TabItem
ToolbarWindow32ToolBar
ToolbarWindow32MenuItem
ToolbarWindow32Button
ToolbarWindow32CheckBox
ToolbarWindow32RadioButton
ToolbarWindow32Separator
tooltips_class32ToolTip
#32774ToolTip
ReBarWindow32Toolbar
SysTreeView32Tree
SysTreeView32TreeItem

Note The RichEdit control is supported only for versions shipped with Windows Vista (in RichEd20.dll version 3.1 and later, and MsftEdit.dll version 4.1 and later).

The following controls are not supported.

Class nameControl type
SysAnimate32Image
SysPagerSpinner
SysDateTimePick32Custom
SysMonthCal32Calendar
MS_WINNOTETooltip
VBBubbleTooltip
ScrollBar (when used as a standalone control)Slider
SuperGridCustom

Windows Forms controls are exposed to Microsoft UI Automation through client-side providers in UIAutomationClientsideProviders.dll. This assembly is automatically registered for use with UI Automation client applications.

Typically, Windows Forms controls that are managed wrappers for Win32 common controls are supported by UI Automation. The following controls are supported.

Class Name
Button
CheckBox
CheckedListBox
ColorDialog
ComboBox
FolderBrowser
FontDialog
GroupBox
HscrollBar
ImageList
Label
ListBox
ListView
MainMenu/ContextMenu
MonthCalendar
NotifyIcon
OpenFileDialog
PageSetupDialog
PrintDialog
ProgressBar
RadioButton
RichTextBox
SaveFileDialog
ScrollableControl
SoundPlayer
StatusBar
TabControl/TabPage
TextBox
Timer
Toolbar
ToolTip
TrackBar
TreeView
VscrollBar
WebBrowser

The following controls are exposed to Microsoft UI Automation only through their support for Entity with relative path '../Token/TLA%23tla_aa_md.md' can not be found, for source topic '{"project_id":"3fedad16-eaf1-41a6-8f96-0c1949c68f32","entity_id":"3770ea8a-2655-4add-9c59-fe0610ad5084","entity_type":"Article","locale":"en-US"}'.. Some functionality may not be available.

Control Name
BindingSource
DataGrid
DataGridView
DataNavigator
DomainUpDown
ErrorProvider
FlowLayoutPanel
Form
LinkLabel
HelpProvider
MaskedTextBox
MenuStrip/ContextMenuStrip
NumericUpDown
Panel
PictureBox
PrintDocument
PrintPreview-Control
PrintPreview-Dialog
PropertyGrid
UserControl
ToolStrip
TableLayoutPanel
SplitContainer/SplitterPanel
Splitter
RaftingContainer
StatusStrip

UI Automation Control Types

Show: