ControlType.Custom 字段

定义

标识不是定义的控件类型之一的控件。

public: static initonly System::Windows::Automation::ControlType ^ Custom;
public static readonly System.Windows.Automation.ControlType Custom;
 staticval mutable Custom : System.Windows.Automation.ControlType
Public Shared ReadOnly Custom As ControlType 

字段值

注解

控件 Custom 类型指示未标识为预定义控件类型之一(如 ButtonCalendar) 的控件。

控件开发人员应在将控件指定为 Custom 控件类型之前检查其他控件类型,以确保其控件不提供与定义的控件类型之一相同的功能。

Custom 控件类型需要提供程序实现UI 自动化的额外工作。 此外,UI 自动化客户端产品将无法根据控件的控件类型预测控件结构、键盘交互和可能的控件模式。

适用于