Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ on:
- master
- main

concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
contents: read

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -37,8 +41,32 @@ jobs:
chmod +x build-docs.sh
./build-docs.sh

- name: Upload docs artifact
if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
uses: actions/upload-artifact@v4
with:
name: docs-site
path: ./site/.lunet/build/www
include-hidden-files: true
if-no-files-found: error
Comment thread
wieslawsoltes marked this conversation as resolved.

deploy:
if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download docs artifact
uses: actions/download-artifact@v4
with:
name: docs-site
path: ./site/.lunet/build/www

- name: Deploy to GitHub Pages
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project>
<PropertyGroup>
<VersionPrefix>3.7.0</VersionPrefix>
<VersionPrefix>4.0.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<AvaloniaVersionPrefix>11.3.9.5</AvaloniaVersionPrefix>
<AvaloniaVersionPrefix>12.0.0</AvaloniaVersionPrefix>
<AvaloniaVersionSuffix>$(VersionSuffix)</AvaloniaVersionSuffix>
<UnoVersionPrefix>6.5.31</UnoVersionPrefix>
<UnoVersionPrefix>6.5.31.1</UnoVersionPrefix>
<UnoVersionSuffix>$(VersionSuffix)</UnoVersionSuffix>
<Authors>Wiesław Šoltés</Authors>
<Company>Wiesław Šoltés</Company>
Expand Down
7 changes: 3 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<AvaloniaVersion>11.3.9</AvaloniaVersion>
<AvaloniaVersion>12.0.0</AvaloniaVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Avalonia" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.ReactiveUI" Version="$(AvaloniaVersion)" />
<PackageVersion Include="ProDiagnostics" Version="$(AvaloniaVersion)" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace invalid diagnostics package ID

ProDiagnostics is wired as the central diagnostics package version, but this repo’s NuGet.Config only allows nuget.org and Avalonia’s own tooling docs/packages use AvaloniaUI.DiagnosticsSupport (with Avalonia.Diagnostics explicitly deprecated). Because all sample projects import build/Avalonia.Diagnostics.props, restore will attempt to resolve ProDiagnostics at $(AvaloniaVersion) and fail with a missing-package error on a clean environment.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked this after 784f10b9f74cb35512a77fc2b68ac343f9b9d18e (Use ProDiagnostics for devtools) and 1aaaa347d04eb6c579a3b71f942438a090ad8149 (Always reference ProDiagnostics). No code rollback was needed: ProDiagnostics is published on nuget.org, including 12.0.0 (https://api.nuget.org/v3-flatcontainer/prodiagnostics/index.json lists it), and the branch currently restores/builds successfully with the shared build/Avalonia.Diagnostics.props import in place. I also reran dotnet build Svg.Skia.slnx -c Release on the current branch after making the diagnostics wiring unconditional.

<PackageVersion Include="Avalonia.Themes.Fluent" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Fonts.Inter" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Browser" Version="$(AvaloniaVersion)" />
Expand All @@ -16,7 +15,6 @@
<PackageVersion Include="Avalonia.Controls.DataGrid" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Controls.ColorPicker" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Microsoft.Build.Tasks.Core" Version="18.0.2" />
<PackageVersion Include="ReactiveGenerator" Version="0.12.0" />
<PackageVersion Include="Svg" Version="3.4.4" />
<PackageVersion Include="ExCSS" Version="4.3.1" />
<PackageVersion Include="SkiaSharp" Version="2.88.9" />
Expand All @@ -38,6 +36,7 @@
<PackageVersion Include="SixLabors.ImageSharp" Version="3.1.11" />
<PackageVersion Include="BenchmarkDotNet" Version="0.13.12" />
<PackageVersion Include="xunit" Version="2.9.3" />
<PackageVersion Include="xunit.v3" Version="3.2.2" />
<PackageVersion Include="xunit.abstractions" Version="2.0.3" />
<PackageVersion Include="xunit.assert" Version="2.9.3" />
<PackageVersion Include="xunit.core" Version="2.9.3" />
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,29 @@
[![Github All Releases](https://img.shields.io/github/downloads/wieslawsoltes/svg.skia/total.svg)](https://github.com/wieslawsoltes/svg.skia)
[![Github Releases](https://img.shields.io/github/downloads/wieslawsoltes/svg.skia/latest/total.svg)](https://github.com/wieslawsoltes/svg.skia)

| Package ID | NuGet | Downloads |
| --- | --- | --- |
| `ShimSkiaSharp` | [![NuGet](https://img.shields.io/nuget/v/ShimSkiaSharp.svg)](https://www.nuget.org/packages/ShimSkiaSharp/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/ShimSkiaSharp.svg)](https://www.nuget.org/packages/ShimSkiaSharp/) |
| `Skia.Controls.Avalonia` | [![NuGet](https://img.shields.io/nuget/v/Skia.Controls.Avalonia.svg)](https://www.nuget.org/packages/Skia.Controls.Avalonia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Skia.Controls.Avalonia.svg)](https://www.nuget.org/packages/Skia.Controls.Avalonia/) |
| `Svg.Animation` | [![NuGet](https://img.shields.io/nuget/v/Svg.Animation.svg)](https://www.nuget.org/packages/Svg.Animation/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Animation.svg)](https://www.nuget.org/packages/Svg.Animation/) |
| `Svg.CodeGen.Skia` | [![NuGet](https://img.shields.io/nuget/v/Svg.CodeGen.Skia.svg)](https://www.nuget.org/packages/Svg.CodeGen.Skia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.CodeGen.Skia.svg)](https://www.nuget.org/packages/Svg.CodeGen.Skia/) |
| `Svg.Controls.Avalonia` | [![NuGet](https://img.shields.io/nuget/v/Svg.Controls.Avalonia.svg)](https://www.nuget.org/packages/Svg.Controls.Avalonia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Controls.Avalonia.svg)](https://www.nuget.org/packages/Svg.Controls.Avalonia/) |
| `Svg.Controls.Skia.Avalonia` | [![NuGet](https://img.shields.io/nuget/v/Svg.Controls.Skia.Avalonia.svg)](https://www.nuget.org/packages/Svg.Controls.Skia.Avalonia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Controls.Skia.Avalonia.svg)](https://www.nuget.org/packages/Svg.Controls.Skia.Avalonia/) |
| `Svg.Controls.Skia.Uno` | [![NuGet](https://img.shields.io/nuget/v/Svg.Controls.Skia.Uno.svg)](https://www.nuget.org/packages/Svg.Controls.Skia.Uno/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Controls.Skia.Uno.svg)](https://www.nuget.org/packages/Svg.Controls.Skia.Uno/) |
| `Svg.Custom` | [![NuGet](https://img.shields.io/nuget/v/Svg.Custom.svg)](https://www.nuget.org/packages/Svg.Custom/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Custom.svg)](https://www.nuget.org/packages/Svg.Custom/) |
| `Svg.Editor.Avalonia` | [![NuGet](https://img.shields.io/nuget/v/Svg.Editor.Avalonia.svg)](https://www.nuget.org/packages/Svg.Editor.Avalonia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Editor.Avalonia.svg)](https://www.nuget.org/packages/Svg.Editor.Avalonia/) |
| `Svg.Editor.Core` | [![NuGet](https://img.shields.io/nuget/v/Svg.Editor.Core.svg)](https://www.nuget.org/packages/Svg.Editor.Core/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Editor.Core.svg)](https://www.nuget.org/packages/Svg.Editor.Core/) |
| `Svg.Editor.Skia` | [![NuGet](https://img.shields.io/nuget/v/Svg.Editor.Skia.svg)](https://www.nuget.org/packages/Svg.Editor.Skia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Editor.Skia.svg)](https://www.nuget.org/packages/Svg.Editor.Skia/) |
| `Svg.Editor.Skia.Avalonia` | [![NuGet](https://img.shields.io/nuget/v/Svg.Editor.Skia.Avalonia.svg)](https://www.nuget.org/packages/Svg.Editor.Skia.Avalonia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Editor.Skia.Avalonia.svg)](https://www.nuget.org/packages/Svg.Editor.Skia.Avalonia/) |
| `Svg.Editor.Svg` | [![NuGet](https://img.shields.io/nuget/v/Svg.Editor.Svg.svg)](https://www.nuget.org/packages/Svg.Editor.Svg/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Editor.Svg.svg)](https://www.nuget.org/packages/Svg.Editor.Svg/) |
| `Svg.Model` | [![NuGet](https://img.shields.io/nuget/v/Svg.Model.svg)](https://www.nuget.org/packages/Svg.Model/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Model.svg)](https://www.nuget.org/packages/Svg.Model/) |
| `Svg.SceneGraph` | [![NuGet](https://img.shields.io/nuget/v/Svg.SceneGraph.svg)](https://www.nuget.org/packages/Svg.SceneGraph/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.SceneGraph.svg)](https://www.nuget.org/packages/Svg.SceneGraph/) |
| `Svg.Skia` | [![NuGet](https://img.shields.io/nuget/v/Svg.Skia.svg)](https://www.nuget.org/packages/Svg.Skia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Skia.svg)](https://www.nuget.org/packages/Svg.Skia/) |
| `Svg.Skia.Converter` | [![NuGet](https://img.shields.io/nuget/v/Svg.Skia.Converter.svg)](https://www.nuget.org/packages/Svg.Skia.Converter/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.Skia.Converter.svg)](https://www.nuget.org/packages/Svg.Skia.Converter/) |
| `Svg.SourceGenerator.Skia` | [![NuGet](https://img.shields.io/nuget/v/Svg.SourceGenerator.Skia.svg)](https://www.nuget.org/packages/Svg.SourceGenerator.Skia/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/Svg.SourceGenerator.Skia.svg)](https://www.nuget.org/packages/Svg.SourceGenerator.Skia/) |
| `svgc` | [![NuGet](https://img.shields.io/nuget/v/svgc.svg)](https://www.nuget.org/packages/svgc/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/svgc.svg)](https://www.nuget.org/packages/svgc/) |
| `SvgToPng` | [![NuGet](https://img.shields.io/nuget/v/SvgToPng.svg)](https://www.nuget.org/packages/SvgToPng/) | [![NuGet Downloads](https://img.shields.io/nuget/dt/SvgToPng.svg)](https://www.nuget.org/packages/SvgToPng/) |

*Svg.Skia* is an [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics) rendering library.

## About
Expand Down
2 changes: 1 addition & 1 deletion Svg.Skia.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<File Path="build/Avalonia.Desktop.props" />
<File Path="build/Avalonia.Diagnostics.props" />
<File Path="build/Avalonia.props" />
<File Path="build/Avalonia.ReactiveUI.props" />
<File Path="build/ReactiveUI.Avalonia.props" />
<File Path="build/Avalonia.Skia.props" />
<File Path="build/Avalonia.Themes.Fluent.props" />
<File Path="build/Avalonia.Web.props" />
Expand Down
2 changes: 1 addition & 1 deletion build/Avalonia.Diagnostics.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Diagnostics" />
<PackageReference Include="ProDiagnostics" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.ReactiveUI" />
<PackageReference Include="ReactiveUI.Avalonia" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions build/SkiaSharp.Native.v3.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="SkiaSharp.NativeAssets.Linux" VersionOverride="3.119.1" />
<PackageReference Include="SkiaSharp.NativeAssets.Win32" VersionOverride="3.119.1" />
<PackageReference Include="SkiaSharp.NativeAssets.macOS" VersionOverride="3.119.1" />
<PackageReference Include="SkiaSharp.NativeAssets.WebAssembly" VersionOverride="3.119.1" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" VersionOverride="3.119.3-preview.1.1" />
<PackageReference Include="SkiaSharp.NativeAssets.Win32" VersionOverride="3.119.3-preview.1.1" />
<PackageReference Include="SkiaSharp.NativeAssets.macOS" VersionOverride="3.119.3-preview.1.1" />
<PackageReference Include="SkiaSharp.NativeAssets.WebAssembly" VersionOverride="3.119.3-preview.1.1" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/SkiaSharp.v3.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="SkiaSharp" VersionOverride="3.119.1" />
<PackageReference Include="SkiaSharp" VersionOverride="3.119.3-preview.1.1" />
</ItemGroup>
</Project>
8 changes: 8 additions & 0 deletions build/XUnit.v3.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions samples/AvalonDraw/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Diagnostics;
using Avalonia.Markup.Xaml;

namespace AvalonDraw;
Expand All @@ -19,5 +20,8 @@ public override void OnFrameworkInitializationCompleted()
}

base.OnFrameworkInitializationCompleted();
#if DEBUG
this.AttachDevTools();
#endif
}
}
4 changes: 4 additions & 0 deletions samples/AvaloniaControlsSample/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Diagnostics;
using Avalonia.Markup.Xaml;

namespace AvaloniaControlsSample;
Expand All @@ -19,5 +20,8 @@ public override void OnFrameworkInitializationCompleted()
}

base.OnFrameworkInitializationCompleted();
#if DEBUG
this.AttachDevTools();
#endif
}
}
3 changes: 0 additions & 3 deletions samples/AvaloniaControlsSample/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
CanvasControl.Draw += (_, e) =>
{
e.Canvas.DrawRect(SKRect.Create(0f, 0f, 100f, 100f), new SKPaint { Color = SKColors.Aqua });
Expand Down
4 changes: 4 additions & 0 deletions samples/AvaloniaSKPictureImageSample/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Diagnostics;
using Avalonia.Markup.Xaml;

namespace AvaloniaSKPictureImageSample;
Expand All @@ -19,5 +20,8 @@ public override void OnFrameworkInitializationCompleted()
}

base.OnFrameworkInitializationCompleted();
#if DEBUG
this.AttachDevTools();
#endif
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<AvaloniaNameGeneratorIsEnabled>False</AvaloniaNameGeneratorIsEnabled>
<AvaloniaUseCompiledBindingsByDefault>false</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions samples/AvaloniaSKPictureImageSample/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
}

private void InitializeComponent()
Expand Down
4 changes: 4 additions & 0 deletions samples/AvaloniaSvgSample/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Diagnostics;
using Avalonia.Markup.Xaml;

namespace AvaloniaSvgSample;
Expand All @@ -19,5 +20,8 @@ public override void OnFrameworkInitializationCompleted()
}

base.OnFrameworkInitializationCompleted();
#if DEBUG
this.AttachDevTools();
#endif
}
}
66 changes: 32 additions & 34 deletions samples/AvaloniaSvgSample/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Avalonia.Input;
using Avalonia.Markup.Xaml;
using Avalonia.Media;
using Avalonia.Platform.Storage;
using Avalonia.Svg;
using ShimSkiaSharp;

Expand All @@ -15,9 +16,6 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
svgSvgDockPanel.AddHandler(DragDrop.DropEvent, Drop);
svgSvgDockPanel.AddHandler(DragDrop.DragOverEvent, DragOver);

Expand Down Expand Up @@ -89,49 +87,49 @@ private void DragOver(object sender, DragEventArgs e)
{
e.DragEffects = e.DragEffects & (DragDropEffects.Copy | DragDropEffects.Link);

if (!e.Data.Contains(DataFormats.Files))
if (e.DataTransfer.TryGetFiles() is not { Length: > 0 })
{
e.DragEffects = DragDropEffects.None;
}
}

private void Drop(object sender, DragEventArgs e)
{
if (e.Data.Contains(DataFormats.Files))
var fileName = e.DataTransfer.TryGetFiles()?
.Select(file => file.TryGetLocalPath())
.FirstOrDefault(path => !string.IsNullOrWhiteSpace(path));

if (!string.IsNullOrWhiteSpace(fileName))
{
var fileName = e.Data.GetFileNames()?.FirstOrDefault();
if (!string.IsNullOrWhiteSpace(fileName))
if (sender == svgSvgDockPanel)
{
if (sender == svgSvgDockPanel)
{
svgSvg.Path = fileName;
}
else if (sender == svgExtensionDockPanel)
{
svgExtensionImage.Source = new SvgImage
{
Source = SvgSource.Load(fileName, null)
};
}
else if (sender == svgSourceDockPanel)
svgSvg.Path = fileName;
}
else if (sender == svgExtensionDockPanel)
{
svgExtensionImage.Source = new SvgImage
{
svgSourceImage.Source = new SvgImage
{
Source = SvgSource.Load(fileName, null)
};
}
else if (sender == svgResourceDockPanel)
Source = SvgSource.Load(fileName, null)
};
}
else if (sender == svgSourceDockPanel)
{
svgSourceImage.Source = new SvgImage
{
svgResourceImage.Source = new SvgImage
{
Source = SvgSource.Load(fileName, null)
};
}
else if (sender == stringTextBox || sender == svgString)
Source = SvgSource.Load(fileName, null)
};
}
else if (sender == svgResourceDockPanel)
{
svgResourceImage.Source = new SvgImage
{
var source = File.ReadAllText(fileName);
stringTextBox.Text = source;
}
Source = SvgSource.Load(fileName, null)
};
}
else if (sender == stringTextBox || sender == svgString)
{
var source = File.ReadAllText(fileName);
stringTextBox.Text = source;
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions samples/AvaloniaSvgSkiaSample/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Diagnostics;
using Avalonia.Markup.Xaml;

namespace AvaloniaSvgSkiaSample;
Expand All @@ -19,5 +20,8 @@ public override void OnFrameworkInitializationCompleted()
}

base.OnFrameworkInitializationCompleted();
#if DEBUG
this.AttachDevTools();
#endif
}
}
Loading
Loading