ICanvasAnimatedControlGameLoopStarting Event |
Namespace: Microsoft.Graphics.Canvas.UI.Xaml
event TypedEventHandler<ICanvasAnimatedControl, Object> GameLoopStarting
This event is the first chance that an application has to execute code on the game loop thread. This is the recommended place to call CreateCoreIndependentInputSource(CoreInputDeviceTypes), create GestureRecognizers and register event handlers against them.
Use GameLoopStopped to unregister any event handlers that were registered during GameLoopStarting.
The CustomFonts example in ExampleGallery demonstrates using this event.