SKSwapChainPanel 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 SwapChainPanel that can be drawn on using SkiaSharp drawing commands.
public class SKSwapChainPanel : SkiaSharp.Views.UWP.AngleSwapChainPanel
- Inheritance
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for