SKSwapChainPanel Class

Definition

A SwapChainPanel that can be drawn on using SkiaSharp drawing commands.

public class SKSwapChainPanel : SkiaSharp.Views.UWP.AngleSwapChainPanel
Inheritance
Windows.UI.Xaml.Controls.SwapChainPanel
SKSwapChainPanel

Constructors

SKSwapChainPanel()

Creates a new instance of SKSwapChainPanel.

Properties

BackingOption

Gets or sets the value for how the drawable surface retains its contents after displaying them.

(Inherited from AngleSwapChainPanel)
CanvasSize

Gets the current canvas size.

ContentsScale

Gets or sets the scaling for the renderbuffer dimensions.

(Inherited from AngleSwapChainPanel)
Context

Get or sets the ANGLE OpenGL ES context.

(Inherited from AngleSwapChainPanel)
DepthFormat

Gets or sets the format of the depth renderbuffer.

(Inherited from AngleSwapChainPanel)
DrawInBackground

Gets or sets a value indicating whether drawing occurs on a background thread, or the main UI thread

(Inherited from AngleSwapChainPanel)
EnableRenderLoop

Gets or sets a value indicating whether to use a render loop, or on-demand rendering.

(Inherited from AngleSwapChainPanel)
GRContext

Gets the current GPU context.

Multisampling

Gets or sets the format of the multisampling buffer.

(Inherited from AngleSwapChainPanel)
StencilFormat

Gets or sets the format of the stencil renderbuffer.

(Inherited from AngleSwapChainPanel)

Methods

ArrangeOverride(Size)

Provides the behavior for the "Measure" pass of the layout cycle. Classes can override this method to define their own "Measure" pass behavior.

Invalidate()

Invalidates the entire surface of the control and causes the control to be redrawn.

(Inherited from AngleSwapChainPanel)
OnDestroyingContext()

Called when the GPU context is about to be destroyed.

OnDestroyingContext()

Called when the GPU context is about to be destroyed.

(Inherited from AngleSwapChainPanel)
OnPaintSurface(SKPaintGLSurfaceEventArgs)

Implement this to draw on the canvas.

OnRenderFrame(Rect)

Called to draw the current frame within the passed-in rectangle.

Events

PaintSurface

Occurs when the surface needs to be redrawn.

Applies to