From 8c87422553d53316f4ac1306af7a4cd8a27aa52c Mon Sep 17 00:00:00 2001 From: punker76 Date: Sun, 27 Oct 2024 23:31:39 +0100 Subject: [PATCH] feat: add IconPacks.Avalonia --- src/AvaloniaApp/App.axaml | 3 +- src/AvaloniaApp/AvaloniaApp.csproj | 3 +- src/AvaloniaApp/MainWindow.axaml | 26 ++- src/AvaloniaIconPacks.TestApp.sln | 14 ++ .../PackIconBoxIcons.cs | 2 +- .../PackIconBoxIcons.xaml | 51 +++-- .../Converter/PackIconKindToImageConverter.cs | 183 ++++++++++++++++ .../IconPacks.Avalonia.csproj | 32 +++ src/IconPacks.Avalonia/Icons.xaml | 12 ++ src/IconPacks.Avalonia/PackIconControl.cs | 61 ++++++ src/IconPacks.Avalonia/PackIconControl.xaml | 174 +++++++++++++++ .../PackIconControlDataFactory.cs | 169 +++++++++++++++ src/IconPacks.Avalonia/PackIconExtension.cs | 171 +++++++++++++++ .../PackIconImageExtension.cs | 201 ++++++++++++++++++ .../Properties/AssemblyInfo.cs | 9 + 15 files changed, 1080 insertions(+), 31 deletions(-) create mode 100644 src/IconPacks.Avalonia/Converter/PackIconKindToImageConverter.cs create mode 100644 src/IconPacks.Avalonia/IconPacks.Avalonia.csproj create mode 100644 src/IconPacks.Avalonia/Icons.xaml create mode 100644 src/IconPacks.Avalonia/PackIconControl.cs create mode 100644 src/IconPacks.Avalonia/PackIconControl.xaml create mode 100644 src/IconPacks.Avalonia/PackIconControlDataFactory.cs create mode 100644 src/IconPacks.Avalonia/PackIconExtension.cs create mode 100644 src/IconPacks.Avalonia/PackIconImageExtension.cs create mode 100644 src/IconPacks.Avalonia/Properties/AssemblyInfo.cs diff --git a/src/AvaloniaApp/App.axaml b/src/AvaloniaApp/App.axaml index 065f56a..7f316a7 100644 --- a/src/AvaloniaApp/App.axaml +++ b/src/AvaloniaApp/App.axaml @@ -29,6 +29,7 @@ - + + \ No newline at end of file diff --git a/src/AvaloniaApp/AvaloniaApp.csproj b/src/AvaloniaApp/AvaloniaApp.csproj index 71d98d1..b988d25 100644 --- a/src/AvaloniaApp/AvaloniaApp.csproj +++ b/src/AvaloniaApp/AvaloniaApp.csproj @@ -19,7 +19,8 @@ - + + \ No newline at end of file diff --git a/src/AvaloniaApp/MainWindow.axaml b/src/AvaloniaApp/MainWindow.axaml index c9a2918..e4cf672 100644 --- a/src/AvaloniaApp/MainWindow.axaml +++ b/src/AvaloniaApp/MainWindow.axaml @@ -23,21 +23,37 @@ +