CanvasControlCreateResources Event |
Namespace: Microsoft.Graphics.Canvas.UI.Xaml
public event TypedEventHandler<CanvasControl, CanvasCreateResourcesEventArgs> CreateResources
The CreateResources event is raised once when the CanvasControl is first initialized, then again any time the resources need to be recreated, for instance if the graphics device is lost.
If your app cannot be structured in a way where it loads all of its resources at the beginning (for example, a game with multiple levels, and the levels require different assets), see Loading Resources outside of CreateResources for more information.