/// <summary> /// Creates shared resources for Win2D rendering /// </summary> private void PersistentHolderCanvas_CreateResources(Microsoft.Graphics.Canvas.UI.Xaml.CanvasControl sender, Microsoft.Graphics.Canvas.UI.CanvasCreateResourcesEventArgs args) { args.TrackAsyncAction(RenderService.CreateResourcesAsync(sender).AsAsyncAction()); }