Home

Awesome

SkiaSharp.Forms.Xaml

Xaml extensions for SkiaSharp

Build and publish packages

Examples

example

Getting started

Install-PackageSkiaSharp.Forms.Xaml -Version 1.1.0-pre
        xmlns:skia="clr-namespace:SkiaSharp.Views.Forms;assembly=SkiaSharp.Views.Forms"
        xmlns:skiaXaml="clr-namespace:SkiaSharp.Forms.Xaml;assembly=SkiaSharp.Forms.Xaml"
    <skia:SKCanvasView>
    </skia:SKCanvasView>
        <skia:SKCanvasView>
        <skiaXaml:DrawSurface.Renderer>
            <skiaXaml:RendererSource>

            </skiaXaml:RendererSource>
        </skiaXaml:DrawSurface.Renderer>
    </skia:SKCanvasView>
    <skia:SKCanvasView>
        <skiaXaml:DrawSurface.Renderer>
            <skiaXaml:RendererSource>
                <skiaXaml:Clear/>

                <skiaXaml:Rectangle X="{Binding PositionX}"
                                    Y="{Binding PositionY}"
                                    Width="{Binding Width}"
                                    Height="{Binding Height}"
                                    Color="Blue"/>
                        
                <skiaXaml:Circle CenterX="{Binding PositionX}"
                                    CenterY="{Binding PositionY}"
                                    Radius="{Binding Radius}"
                                    StrokeWidth="{Binding StrokeWidth}"
                                    Color="Red" Style="Stroke"/>


            </skiaXaml:RendererSource>
        </skiaXaml:DrawSurface.Renderer>
    </skia:SKCanvasView>

Draw Support

DrawXaml Support
Rectangle
Circle
Text
Path