Click or drag to resize
ICanvasAnimatedControlGameLoopStarting Event
Occurs on the game loop thread just before the game loop starts.

Namespace:  Microsoft.Graphics.Canvas.UI.Xaml
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
event TypedEventHandler<ICanvasAnimatedControl, Object> GameLoopStarting

Value

Type: Windows.FoundationTypedEventHandlerICanvasAnimatedControl, Object
Remarks

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.

See Also