From c8011c464aa9b601fa5cb6093225bf3e081b87e0 Mon Sep 17 00:00:00 2001 From: macaba <1031306+macaba@users.noreply.github.com> Date: Fri, 25 Aug 2023 12:43:41 +0100 Subject: [PATCH] Updated to Avalonia 11 --- source/NSD.UI/App.axaml.cs | 1 + source/NSD.UI/MainWindow.axaml | 2 +- source/NSD.UI/MainWindow.axaml.cs | 4 ---- source/NSD.UI/MainWindowViewModel.cs | 1 - source/NSD.UI/NSD.UI.csproj | 21 +++++++-------------- 5 files changed, 9 insertions(+), 20 deletions(-) diff --git a/source/NSD.UI/App.axaml.cs b/source/NSD.UI/App.axaml.cs index 243a4da..3f534c1 100644 --- a/source/NSD.UI/App.axaml.cs +++ b/source/NSD.UI/App.axaml.cs @@ -24,6 +24,7 @@ public static int Main(string[] args) public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure() .UsePlatformDetect() + .WithInterFont() .LogToTrace(); } } diff --git a/source/NSD.UI/MainWindow.axaml b/source/NSD.UI/MainWindow.axaml index 204ba9d..7b38c20 100644 --- a/source/NSD.UI/MainWindow.axaml +++ b/source/NSD.UI/MainWindow.axaml @@ -45,7 +45,7 @@ - + diff --git a/source/NSD.UI/MainWindow.axaml.cs b/source/NSD.UI/MainWindow.axaml.cs index 093075b..81b7522 100644 --- a/source/NSD.UI/MainWindow.axaml.cs +++ b/source/NSD.UI/MainWindow.axaml.cs @@ -1,9 +1,6 @@ using Avalonia.Controls; using Avalonia.Interactivity; -using Avalonia.Input; -using CsvHelper; using CsvHelper.Configuration; -using NReco.Csv; using System; using System.Collections.Generic; using System.Dynamic; @@ -11,7 +8,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Avalonia.Input.GestureRecognizers; namespace NSD.UI { diff --git a/source/NSD.UI/MainWindowViewModel.cs b/source/NSD.UI/MainWindowViewModel.cs index dd5d18b..44c7002 100644 --- a/source/NSD.UI/MainWindowViewModel.cs +++ b/source/NSD.UI/MainWindowViewModel.cs @@ -3,7 +3,6 @@ using CommunityToolkit.Mvvm.ComponentModel; using System; using System.Collections.ObjectModel; -using System.Reactive; using System.Reflection; namespace NSD.UI diff --git a/source/NSD.UI/NSD.UI.csproj b/source/NSD.UI/NSD.UI.csproj index bcef623..b6cd2e8 100644 --- a/source/NSD.UI/NSD.UI.csproj +++ b/source/NSD.UI/NSD.UI.csproj @@ -2,7 +2,7 @@ WinExe net6.0 - 1.1 + 1.2 enable true en @@ -12,24 +12,17 @@ - - - - - - - + - + + + - - + + -