共用方式為


AutomationProperties.LocalizedControlTypeProperty 屬性

定義

識別當地語系化的控制項類型相依性屬性,這是描述自動化專案所代表控制項類型的文字字串。

public:
 static property DependencyProperty ^ LocalizedControlTypeProperty { DependencyProperty ^ get(); };
static DependencyProperty LocalizedControlTypeProperty();
public static DependencyProperty LocalizedControlTypeProperty { get; }
var dependencyProperty = AutomationProperties.localizedControlTypeProperty;
Public Shared ReadOnly Property LocalizedControlTypeProperty As DependencyProperty

屬性值

相依性屬性的識別項。

備註

字串應該只包含小寫字元:

  • 正確:「button」
  • 不正確:「Button」

當 Element 提供者未指定 LocalizedControlType 時,架構會根據元素的控制項類型來提供預設當地語系化字串 (例如 Button 控制項類型的 「button」) 。 具有 自訂 控制項類型的自動化專案必須支援當地語系化的控制項類型字串,此字串代表元素 (的角色,例如,自訂控制項的「色彩選擇器」可讓使用者選擇及指定色彩) 。

提供自訂值時,字串必須符合應用程式 UI 語言或作業系統預設 UI 語言。

適用於