SKXamlCanvas Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A XAML canvas that can be drawn on using SkiaSharp drawing commands.
public class SKXamlCanvas : Windows.UI.Xaml.Controls.Canvas
- Inheritance
-
Windows.UI.Xaml.Controls.CanvasSKXamlCanvas
Constructors
SKXamlCanvas() |
Creates a new instance of SKXamlCanvas. |
Properties
CanvasSize |
Gets the current canvas size. |
Dpi |
Gets the current DPI for the canvas. |
IgnorePixelScaling |
Gets or sets a value indicating whether the drawing canvas should be resized on high resolution displays. |
Methods
Invalidate() |
Invalidates the entire surface of the control and causes the control to be redrawn. |
OnPaintSurface(SKPaintSurfaceEventArgs) |
Implement this to draw on the canvas. |
Events
PaintSurface |
Occurs when the surface needs to be redrawn. |