SKElement 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 visual element that can be drawn on using SkiaSharp drawing commands.
public class SKElement : System.Windows.FrameworkElement
- Inheritance
-
SKElement
Constructors
SKElement() |
Creates a new instance of the SKElement view. |
Properties
CanvasSize |
Gets the current canvas size. |
IgnorePixelScaling |
Gets or sets a value indicating whether the drawing canvas should be resized on high resolution displays. |
Methods
OnPaintSurface(SKPaintSurfaceEventArgs) |
Implement this to draw on the canvas. |
OnRender(DrawingContext) |
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing. |
OnRenderSizeChanged(SizeChangedInfo) |
Raises the SizeChanged event, using the specified information as part of the eventual event data. |
Events
PaintSurface |
Occurs when the the canvas needs to be redrawn. |
Applies to
SkiaSharp