Control.GetIsTemplateFocusTarget(FrameworkElement) 方法

定义

获取目标元素的 Control.IsTemplateFocusTarget XAML 附加属性的值。

public:
 static bool GetIsTemplateFocusTarget(FrameworkElement ^ element);
 static bool GetIsTemplateFocusTarget(FrameworkElement const& element);
public static bool GetIsTemplateFocusTarget(FrameworkElement element);
function getIsTemplateFocusTarget(element)
Public Shared Function GetIsTemplateFocusTarget (element As FrameworkElement) As Boolean

参数

element
FrameworkElement

从中读取属性值的对象。

返回

Boolean

bool

指定对象的 Control.IsTemplateFocusTarget XAML 附加属性值。

注解

此方法是属性系统的实用工具方法,在大多数应用方案中不使用。 在大多数情况下,在 XAML 中设置 Control.IsTemplateFocusTarget XAML 附加属性,不需要此方法。 有关详细信息,请参阅 Control.IsTemplateFocusTarget 附加属性。

适用于

另请参阅