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
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기