SKGLView 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 hardware-accelerated view that can be drawn on using SkiaSharp drawing commands.
[Xamarin.Forms.RenderWith(typeof(SkiaSharp.Views.Forms.SKGLViewRenderer))]
public class SKGLView : Xamarin.Forms.View
[Xamarin.Forms.RenderWith(typeof(SkiaSharp.Views.Forms.SKGLViewRenderer))]
public class SKGLView : Xamarin.Forms.View, SkiaSharp.Views.Forms.ISKGLViewController
- Inheritance
-
SKGLView
- Attributes
- Implements
Constructors
SKGLView() |
Creates a new instance of the SKGLView view. |
Fields
EnableTouchEventsProperty |
Implements the EnableTouchEvents property, and allows the SKGLView class to bind it to properties on other objects at run time. |
HasRenderLoopProperty |
Identifies the HasRenderLoop bindable property. |
Properties
CanvasSize |
Gets the current canvas size. |
EnableTouchEvents |
Gets or sets a value indicating whether or not to enable touch events for this view. |
GRContext |
Gets the current GPU context. |
HasRenderLoop |
Gets or sets a value indicating whether the surface is drawn using a render loop. |
Methods
InvalidateSurface() |
Informs the surface that it needs to redraw itself. |
OnMeasure(Double, Double) |
Method that is called when a layout measurement happens. |
OnPaintSurface(SKPaintGLSurfaceEventArgs) |
Implement this to draw on the surface. |
OnTouch(SKTouchEventArgs) |
Implement this to handle touch events on the surface. |
Events
PaintSurface |
Occurs when the surface needs to be redrawn. |
Touch |
Occurs when the the surface received a touch event. |