Skip to main content
net11.0

Avalonia.Controls.Maui.SkiaSharp.Views provides an implementation of SkiaSharp.Views.Maui.Controls, using Avalonia-based implementations.

Published
Jul 15, 2026
3mo ago
Total Downloads
1.2K
1,168

Install

dotnet add package Avalonia.Controls.Maui.SkiaSharp.Views --version 11.0.0-preview.6.26196.148
ProductVersions
.NET
net11.0

README

Avalonia.Controls.Maui.SkiaSharp.Views

Avalonia-backed handlers for SkiaSharp.Views.Maui, enabling SKCanvasView and SKGLView to render when .NET MAUI runs on Avalonia. In short, this can be used for controls that require using .WithSkiaSharp().

  • SKCanvasView — CPU raster SkiaSharp drawing surface
  • SKGLView — GPU-accelerated drawing surface (uses GRContext from Avalonia's Skia lease when available, with CPU fallback)
  • Image sources — SKBitmapImageSource, SKImageImageSource, SKPixmapImageSource, and SKPictureImageSource convert to Avalonia bitmaps via direct pixel copy

Getting Started

Prerequisites

Installation

Add the NuGet package to your project:

<PackageReference Include="Avalonia.Controls.Maui.SkiaSharp.Views" Version="..." />

Usage

Call UseAvaloniaSkiaSharp() in your MauiProgram.cs after UseAvaloniaApp():

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .UseAvaloniaApp()
            .UseAvaloniaSkiaSharp()
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
            });

        return builder.Build();
    }
}

This registers Avalonia handlers for SKCanvasView, SKGLView, and all SkiaSharp image source types. Your existing SkiaSharp.Views.Maui code works without changes.

License

This project is licensed under the MIT License.

Changes from Previous Version

No structural changes between v11.0.0-preview.5.26167.1758 and v11.0.0-preview.6.26196.148.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.