Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Jan 27, 2024
1 parent e7cfddd commit b8d0a8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/AvaloniaSvgSkiaStylingSample/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using Avalonia;
using Avalonia.Svg.Skia;
using Svg.Skia;

namespace AvaloniaSvgSkiaStylingSample;

Expand All @@ -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<App>()
.UsePlatformDetect()
.With(new X11PlatformOptions
Expand Down

0 comments on commit b8d0a8f

Please sign in to comment.