CanvasControlDraw Event |
Namespace: Microsoft.Graphics.Canvas.UI.Xaml
public event TypedEventHandler<CanvasControl, CanvasDrawEventArgs> Draw
The Draw event is raised once when the CanvasControl first becomes visible, then again any time its contents need to be redrawn. This can occur, for example, if the control is resized. You can manually trigger a Draw event yourself by calling Invalidate.
If you want to animate the contents of a CanvasControl, you should use CanvasAnimatedControl instead. CanvasAnimatedControl raises the Draw event on a configurable interval; by default this is 60 times per second.