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. |
Explicit Interface Implementations
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈