Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.91 KB

File metadata and controls

50 lines (34 loc) · 1.91 KB
title author description keywords
FocusTracker XAML Control
nmetulev
The FocusTracker Control can be used to display information about the current focused XAML element (if any).
windows 10, uwp, windows community toolkit, uwp community toolkit, uwp toolkit, FocusTracker, XAML Control, xaml

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

[!div class="nextstepaction"] Try it in the sample app

Syntax

<developerTools:FocusTracker IsActive="True"/>

Sample Output

FocusTracker image

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