SKXamlCanvas Class

Definition

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.Canvas
SKXamlCanvas

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.

Applies to