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


<developerTools:FocusTracker IsActive="True"/>

Sample Output

FocusTracker image


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.


Device family Universal, 10.0.16299.0 or higher
Namespace Microsoft.Toolkit.Uwp.DeveloperTools
NuGet package Microsoft.Toolkit.Uwp.DeveloperTools