Avalonia.Controls.Maui.SkiaSharp.Views 11.0.0-preview.2.26082.825

Prefix Reserved
This is a prerelease version of Avalonia.Controls.Maui.SkiaSharp.Views.
dotnet add package Avalonia.Controls.Maui.SkiaSharp.Views --version 11.0.0-preview.2.26082.825
                    
NuGet\Install-Package Avalonia.Controls.Maui.SkiaSharp.Views -Version 11.0.0-preview.2.26082.825
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Avalonia.Controls.Maui.SkiaSharp.Views" Version="11.0.0-preview.2.26082.825" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Avalonia.Controls.Maui.SkiaSharp.Views" Version="11.0.0-preview.2.26082.825" />
                    
Directory.Packages.props
<PackageReference Include="Avalonia.Controls.Maui.SkiaSharp.Views" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Avalonia.Controls.Maui.SkiaSharp.Views --version 11.0.0-preview.2.26082.825
                    
#r "nuget: Avalonia.Controls.Maui.SkiaSharp.Views, 11.0.0-preview.2.26082.825"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Avalonia.Controls.Maui.SkiaSharp.Views@11.0.0-preview.2.26082.825
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Avalonia.Controls.Maui.SkiaSharp.Views&version=11.0.0-preview.2.26082.825&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Avalonia.Controls.Maui.SkiaSharp.Views&version=11.0.0-preview.2.26082.825&prerelease
                    
Install as a Cake Tool

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 sourcesSKBitmapImageSource, 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.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0-preview.2.26082.825 37 3/23/2026
11.0.0-preview.2.26075.1512 53 3/16/2026