SKGLView Class

Definition

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.

Explicit Interface Implementations

ISKGLViewController.GetCanvasSize
ISKGLViewController.GetGRContext
ISKGLViewController.OnPaintSurface(SKPaintGLSurfaceEventArgs)
ISKGLViewController.OnTouch(SKTouchEventArgs)
ISKGLViewController.SurfaceInvalidated

Applies to