ICanvasAnimatedControl Interface |
Namespace: Microsoft.Graphics.Canvas.UI.Xaml
public interface ICanvasAnimatedControl : ICanvasResourceCreatorWithDpi, ICanvasResourceCreator
The ICanvasAnimatedControl type exposes the following members.
Name | Description | |
---|---|---|
ClearColor | The color that the control is cleared to before the Draw event is raised. | |
CustomDevice | Gets or sets an application-chosen device for this control. | |
DpiScale | Gets or sets a scaling factor applied to this control's Dpi. | |
ForceSoftwareRenderer | Gets or sets the whether the devices that this control creates will be forced to software rendering. | |
HasGameLoopThreadAccess | Gets whether the current thread is the game loop thread. | |
IsFixedTimeStep | Indicates whether the game loop is running in fixed or variable timing mode. | |
Paused | Indicates whether the control's game loop is paused. | |
ReadyToDraw | Gets whether the control is in a state where it is ready to draw. | |
Size | Gets the current size of the control, in device independent pixels (DIPs). | |
TargetElapsedTime | Gets or sets the time between Update events | |
UseSharedDevice | Gets or sets whether this control should create a new device each time, or use a device which may common between other controls. |
Name | Description | |
---|---|---|
CreateCoreIndependentInputSource | Creates an input source that can process input on a non-UI thread (such as the game loop thread). | |
Invalidate | Marks this control as requiring redrawing. | |
RemoveFromVisualTree | Removes the control from the last FrameworkElement it was parented to. | |
ResetElapsedTime | Ensures that only a single Update event will be raised on the next iteration of the game loop. | |
RunOnGameLoopThreadAsync | Schedules the provided callback to run asynchronously on the game loop thread. |
Name | Description | |
---|---|---|
CreateResources | Hook this event to create any resources needed for your drawing. | |
Draw | Hook this event to draw the contents of the control. | |
GameLoopStarting | Occurs on the game loop thread just before the game loop starts. | |
GameLoopStopped | Occurs on the game loop thread just after the game loop stops. | |
Update | Hook this event to update any data, as necessary, for your app's animation. |
CanvasAnimatedControl is currently unsupported for WinUI3