diff --git a/samples/AvaloniaSvgSkiaStylingSample/Program.cs b/samples/AvaloniaSvgSkiaStylingSample/Program.cs index fe611f8c..0194bae7 100644 --- a/samples/AvaloniaSvgSkiaStylingSample/Program.cs +++ b/samples/AvaloniaSvgSkiaStylingSample/Program.cs @@ -1,6 +1,7 @@ using System; using Avalonia; using Avalonia.Svg.Skia; +using Svg.Skia; namespace AvaloniaSvgSkiaStylingSample; @@ -14,6 +15,9 @@ public static AppBuilder BuildAvaloniaApp() { GC.KeepAlive(typeof(SvgImageExtension).Assembly); GC.KeepAlive(typeof(Avalonia.Svg.Skia.Svg).Assembly); + + SKSvg.CacheOriginalStream = true; + return AppBuilder.Configure() .UsePlatformDetect() .With(new X11PlatformOptions