SkiaSharp.Views.Maui.Controls 4.153.0-preview.1.26454.6

SkiaSharp.Views.Maui.Controls

NuGet NuGet downloads License: MIT

SkiaSharp.Views.Maui.Controls adds SkiaSharp rendering controls and image sources to .NET MAUI applications. Put a CPU- or GPU-backed canvas alongside standard MAUI controls, draw with the full SkiaSharp API, and share the same rendering code across Android, iOS, Mac Catalyst, and Windows.

What you get

  • SKCanvasView for CPU-rendered, on-demand drawing.
  • SKGLView for hardware-accelerated drawing and continuous render loops.
  • SKImageImageSource, SKBitmapImageSource, SKPixmapImageSource, and SKPictureImageSource for MAUI images.
  • XAML support, data binding, touch input, invalidation, and density-aware canvas sizing.
  • Native handlers for Android, iOS, Mac Catalyst, and Windows.

Get started

Install the package:

dotnet add package SkiaSharp.Views.Maui.Controls

Register SkiaSharp in MauiProgram.cs:

using SkiaSharp.Views.Maui.Controls.Hosting;

public static MauiApp CreateMauiApp() =>
    MauiApp
        .CreateBuilder()
        .UseMauiApp<App>()
        .UseSkiaSharp()
        .Build();

Add a canvas to a XAML page:

<ContentPage
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:skia="clr-namespace:SkiaSharp.Views.Maui.Controls;assembly=SkiaSharp.Views.Maui.Controls">

    <skia:SKCanvasView PaintSurface="OnPaintSurface" />

</ContentPage>

Draw in the PaintSurface handler:

using SkiaSharp;
using SkiaSharp.Views.Maui;

private void OnPaintSurface(object sender, SKPaintSurfaceEventArgs e)
{
    var canvas = e.Surface.Canvas;
    canvas.Clear(SKColors.White);

    using var paint = new SKPaint
    {
        Color = SKColors.CornflowerBlue,
        IsAntialias = true,
    };

    canvas.DrawCircle(e.Info.Width / 2f, e.Info.Height / 2f, 120, paint);
}

Call InvalidateSurface() whenever state changes and the view should redraw. Use SKGLView when the scene benefits from GPU rendering or a continuous animation loop.

Documentation and resources

Feedback and contributing

SkiaSharp is an open-source Microsoft project built with the .NET community. Use GitHub Discussions for questions, file bugs and feature requests in the issue tracker, and read the contributing guide to get involved.

This package is released under the MIT license.

No packages depend on SkiaSharp.Views.Maui.Controls.

Please visit https://go.microsoft.com/fwlink/?linkid=868517 to view the release notes.

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

Version Downloads Last updated
4.154.0-preview.1.26454.9 0 09/05/2026
4.153.0-preview.1.26454.6 1 09/08/2026
4.152.0-rc.1.26426.14 0 08/27/2026
4.152.0-preview.1.1 0 08/08/2026
4.151.2 0 09/03/2026
4.151.1 0 08/05/2026
4.151.0 0 07/31/2026
4.151.0-rc.1.1 0 07/22/2026
4.151.0-preview.2.1 0 07/14/2026
4.151.0-preview.1.1 0 07/02/2026
4.150.3 0 09/02/2026
4.150.2 0 08/05/2026
4.150.1 0 07/14/2026
4.150.0 0 07/08/2026
4.150.0-rc.1.1 0 06/30/2026
4.150.0-preview.2.1 0 06/25/2026
4.150.0-preview.1.1 0 06/15/2026
4.148.0 0 06/23/2026
4.148.0-rc.1.2 0 06/14/2026
4.147.0-preview.3.1 1 09/08/2026
4.147.0-preview.2.1 0 05/11/2026
4.147.0-preview.1.1 0 04/28/2026
3.119.4 0 05/25/2026
3.119.4-preview.1.1 0 04/23/2026
3.119.3-preview.1.1 0 02/11/2026
3.119.2 0 02/07/2026
3.119.2-preview.3.1 0 02/05/2026
3.119.2-preview.2.3 0 01/26/2026
3.119.2-preview.1 0 10/14/2025
3.119.1 0 09/23/2025
3.119.1-preview.1 0 09/08/2025
3.119.0 0 04/29/2025
3.119.0-stable.1 0 04/29/2025
3.119.0-preview.1.2 0 04/01/2025
3.118.0-preview.2.3 0 12/05/2024
3.118.0-preview.1.2 0 11/06/2024
3.116.1 0 12/05/2024
3.116.0 0 12/03/2024
3.116.0-preview.6.1 0 11/06/2024
3.0.0-preview.5.4 0 10/24/2024
3.0.0-preview.4.1 0 07/18/2024
3.0.0-preview.3.1 0 04/10/2024
3.0.0-preview.2.1 0 02/20/2024
3.0.0-preview.1.8 0 02/06/2024
3.0.0-preview.0.132 1 09/08/2026
2.88.9 0 11/07/2024
2.88.9-preview.2.2 0 10/24/2024
2.88.9-preview.1.1 0 07/18/2024
2.88.8 0 04/10/2024
2.88.8-preview.1.1 0 04/05/2024
2.88.7 0 01/11/2024
2.88.6 0 09/21/2023
2.88.6-preview.1.2 0 08/31/2023
2.88.5 0 08/23/2023
2.88.4 0 08/22/2023
2.88.4-preview.96 0 08/17/2023
2.88.4-preview.95 0 08/16/2023
2.88.4-preview.89 0 07/25/2023
2.88.4-preview.84 0 06/27/2023
2.88.4-preview.82 1 09/08/2026
2.88.4-preview.76 0 06/19/2023
2.88.4-preview.70 0 06/15/2023
2.88.3 0 10/04/2022
2.88.2 0 09/08/2022
2.88.2-preview.8 0 09/08/2022
2.88.1 0 08/17/2022
2.88.1-preview.108 0 08/12/2022
2.88.1-preview.104 0 08/10/2022
2.88.1-preview.91 0 07/15/2022
2.88.1-preview.79 0 06/29/2022
2.88.1-preview.75 1 09/08/2026
2.88.1-preview.71 0 06/20/2022
2.88.1-preview.63 0 06/08/2022
2.88.1-preview.1 0 05/22/2022
2.88.0 0 05/22/2022
2.88.0-preview.266 0 05/11/2022
2.88.0-preview.256 0 04/26/2022
2.88.0-preview.254 0 04/17/2022
2.88.0-preview.232 0 03/17/2022
2.88.0-preview.209 0 02/18/2022
2.88.0-preview.187 0 01/27/2022
2.88.0-preview.179 0 12/18/2021
2.88.0-preview.178 0 12/15/2021
2.88.0-preview.155 0 10/29/2021
2.88.0-preview.152 0 10/22/2021
2.88.0-preview.150 0 10/11/2021
2.88.0-preview.145 0 09/28/2021
2.88.0-preview.140 0 09/15/2021
2.88.0-preview.139 0 09/13/2021
2.88.0-preview.127 0 08/21/2021
2.88.0-preview.120 0 08/10/2021
2.88.0-preview.61 0 07/12/2021