Avalonia controls
API reference for Beep.Skia.Avalonia.Controls (3 public types)
Complete API surface of the Beep.Skia.Avalonia.Controls assembly: 3 public types with their documented members. Follow the family guide for usage patterns.
Types in this assembly
SkiaHostControlclassSkiaSurfaceclassSkiaSurfacePaintEventArgsclass
SkiaHostControl (class)
Avalonia host control for Beep.Skia diagrams. Uses SkiaSurface for cross-platform rendering and forwards pointer input to the DrawingManager.
| Member | Kind | Description |
|---|---|---|
DrawingManager DrawingManager | Property | Gets or sets the drawing manager. |
SkiaComponentDescriptorCollection DesignTimeComponents | Property | Gets or sets the design time components. |
SkiaHostControl() | Method | Initializes a new instance of the SkiaHostControl class. |
void LoadDesignTimeComponents() | Method | Instantiates design-time descriptors into real components. |
SkiaComponent CreateAndAddComponent(Type type, float x, float y, float w, float h, string name = null) | Method | Gets or sets the create and add component. |
SkiaSurface (class)
Avalonia control that renders Beep.Skia diagrams. SkiaSharp ships no Avalonia view package, so this control renders into an offscreen SKSurface backed by the memory of an Avalonia WriteableBitmap (BGRA8888, premultiplied) and blits it. It therefore depends only on Avalonia + SkiaSharp and works with the same SkiaSharp version as the rest of the solution.
| Member | Kind | Description |
|---|---|---|
event EventHandler<SkiaSurfacePaintEventArgs> PaintSurface | Event | Raised when the surface needs to be redrawn. |
override void Render(global::Avalonia.Media.DrawingContext context) | Method | Gets or sets the render. |
SkiaSurfacePaintEventArgs (class)
Event data for an Avalonia Skia surface paint.
| Member | Kind | Description |
|---|---|---|
SkiaSurfacePaintEventArgs(SKCanvas canvas, int width, int height) | Method | Initializes a new instance of the SkiaSurfacePaintEventArgs class. |
SKCanvas Canvas | Property | Canvas to draw on (already cleared to white). |
int Width | Property | Pixel width of the surface. |
int Height | Property | Pixel height of the surface. |