FocusTracker XAML Control
The FocusTracker Control can be used to display information about the current focused XAML element (if any).
FocusTracker will display the following information (when available) about the current focused XAML element:
- Name
- Type
- AutomationProperties.Name
- Name of the first parent in hierarchy with a name
Syntax
<developerTools:FocusTracker IsActive="True"/>
Sample Output
Properties
Property | Type | Description |
---|---|---|
IsActive | bool | Gets or sets a boolean indicating whether the tracker is running or not |
Sample Project
FocusTracker Sample Page Source. You can see this in action in the Windows Community Toolkit Sample App.
Requirements
Device family | Universal, 10.0.16299.0 or higher |
---|---|
Namespace | Microsoft.Toolkit.Uwp.DeveloperTools |
NuGet package | Microsoft.Toolkit.Uwp.DeveloperTools |
API
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈