This commit is contained in:
2024-05-17 23:35:16 -04:00
parent 1e6ac3b1fc
commit 86bb9bafc3
6 changed files with 524 additions and 17 deletions

View File

@@ -21,6 +21,6 @@
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.0"/>
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.0"/>
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0"/>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" />
</ItemGroup>
</Project>

View File

@@ -1,5 +1,4 @@
using Avalonia;
using Avalonia.ReactiveUI;
using System;
namespace AutumnLauncher.UI;
@@ -18,6 +17,5 @@ class Program
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace()
.UseReactiveUI();
}
.LogToTrace();
}

View File

@@ -1,6 +1,6 @@
namespace AutumnLauncher.UI.ViewModels;
public class MainWindowViewModel : ViewModelBase
public partial class MainWindowViewModel : ViewModelBase
{
public string Greeting => "Welcome to Avalonia!";
}

View File

@@ -1,7 +1,8 @@
using ReactiveUI;

using CommunityToolkit.Mvvm.ComponentModel;
namespace AutumnLauncher.UI.ViewModels;
public class ViewModelBase : ReactiveObject
public class ViewModelBase : ObservableObject
{
}