Skip to main content

Resources tool

The Resources Tool provides a view of your application's resource hierarchy, allowing you to inspect, navigate, and modify resources at runtime. This tool is invaluable for understanding how resources are organized and resolved in your Avalonia application.

In a resource lookup, Avalonia searches through this hierarchy until it finds a matching key. The Resources Tool visualizes this application-level hierarchy and helps you understand which resources are available globally in your application.

You can read more about Avalonia Resources on this documentation page - How To Use Resources.

note

Control-specific resources (those defined on individual controls or within control templates) are not currently displayed in this tool.

The left panel displays a tree of resource providers, which include:

  1. Application (root level)
  2. Resource Dictionaries
  3. Theme Dictionaries
  4. Styles
  5. Other non-dictionary Resource Providers

Each node in the tree represents a resource scope. Selecting a node displays its resources in the right panel.

Resources Tree

Inspecting and Editing resources

The right panel shows resources available in the selected provider.

Resources can be edited directly in this view, allowing you to experiment with different values and see the changes reflected immediately in your application.

Provider Tree

note

Adding new resources to the provider is not yet supported

Filtering and Sorting

The Resources Tool offers several options to help you find specific resources:

  • Include Nested - When enabled, shows all resources available at the selected node and its children, simulating how resource lookup works at runtime. This helps identify which resources are accessible from a specific point in the hierarchy.
  • Sort by - Arrange resources alphabetically by key or grouped by type
  • Order - Sort in ascending or descending order
  • Search filter - Search for resources by key or type

Filter view

Discussion

Have questions or feedback? Join the conversation below.