Custom Field

ControlType.Custom Field


Identifies a control that is not one of the defined control types.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationTypes (in UIAutomationTypes.dll)

public static readonly ControlType Custom

The Custom control type indicates a control that is not identified as one of the predefined control types (such as Button or Calendar).

Control developers should check the other control types before designating their control as a Custom control type to be sure that their control does not provide the same functionality as one of the defined control types.

A Custom control type requires extra work for the provider to implement UI Automation. Also, UI Automation client products will not be able to anticipate the control structure, keyboard interaction, and possible control patterns based on the control type of the control.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft