Resources

In Kanzi, a resource is an item that you can reuse in different parts of your application. For example, a Mesh Data resource defines the geometry of a Model node, and you can use the same Color Brush in different nodes to set the Foreground Brush or Background Brush properties.

You can find all resources in a Kanzi Studio project in the Library window.

../../_images/resources-in-library1.png

The Dictionaries window shows the resources in:

../../_images/resources-in-dictionaries.png

Library views

By default, the Library shows all the resources in a project. Kanzi Studio provides Library views to show only selected resources in your project. You can enable these views in the Window menu:

../../_images/window-menu-available-windows.png

You can add any window as a tab to any other window to see more than one type of content in the same window.

See Customizing the Kanzi Studio interface.

Load resources asynchronously

In Kanzi, you can load resource dictionaries of prefabs you use in your project before your Kanzi application shows them to users. For example, you can create a loading screen that your users see while Kanzi is loading the resource dictionaries of the rest of your application in the background.

See Loading node prefab resources asynchronously.

Use resource profiling to measure during runtime how long it takes to load and deploy resources and prefabs in your Kanzi application.

Resource profiling data helps you find out which resources to load asynchronously.

See Measuring the loading and deployment time of resources.