dotnet add package Svg.Controls.Skia.Uno
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:svg="using:Uno.Svg.Skia">
<svg:Svg Path="/Assets/__AJ_Digital_Camera.svg"
Stretch="Uniform"
EnableCache="True" />
</Page>
<svg:Svg Source="{x:Bind InlineSvg}" Height="140" />
public string InlineSvg =>
"""
<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="60" r="40" fill="#2563eb" />
</svg>
""";
SvgSource<Page.Resources>
<svg:SvgSource x:Key="TigerSource" Path="/Assets/__tiger.svg" />
</Page.Resources>
<svg:Svg SvgSource="{StaticResource TigerSource}" Height="220" />
MySvg.CurrentCss = ".accent { fill: #ef4444; }";
The Uno control also exposes:
WireframeDisableFiltersZoomPanXPanYZoomToPoint(...)TryGetPicturePoint(...)HitTestElements(...)