diff --git a/Source/HangoverAvalonia/App.axaml.cs b/Source/HangoverAvalonia/App.axaml.cs
index a64b8e22..158a427e 100644
--- a/Source/HangoverAvalonia/App.axaml.cs
+++ b/Source/HangoverAvalonia/App.axaml.cs
@@ -17,10 +17,12 @@ namespace HangoverAvalonia
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
- desktop.MainWindow = new MainWindow
+ var mainWindow = new MainWindow
{
- DataContext = new MainWindowViewModel(),
+ DataContext = new MainVM(),
};
+ desktop.MainWindow = mainWindow;
+ mainWindow.OnLoad();
}
base.OnFrameworkInitializationCompleted();
diff --git a/Source/HangoverAvalonia/Controls/CheckedListBox.axaml b/Source/HangoverAvalonia/Controls/CheckedListBox.axaml
new file mode 100644
index 00000000..f797e06b
--- /dev/null
+++ b/Source/HangoverAvalonia/Controls/CheckedListBox.axaml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Source/HangoverAvalonia/Controls/CheckedListBox.axaml.cs b/Source/HangoverAvalonia/Controls/CheckedListBox.axaml.cs
new file mode 100644
index 00000000..79f899e8
--- /dev/null
+++ b/Source/HangoverAvalonia/Controls/CheckedListBox.axaml.cs
@@ -0,0 +1,106 @@
+using Avalonia;
+using Avalonia.Collections;
+using Avalonia.Controls;
+using DataLayer;
+using HangoverAvalonia.ViewModels;
+using NPOI.XSSF.Streaming.Properties;
+using ReactiveUI;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Linq;
+
+namespace HangoverAvalonia.Controls
+{
+ public partial class CheckedListBox : UserControl
+ {
+ public event EventHandler ItemCheck;
+
+ public static readonly StyledProperty ItemsProperty =
+ AvaloniaProperty.Register(nameof(Items));
+
+ public IEnumerable Items { get => GetValue(ItemsProperty); set => SetValue(ItemsProperty, value); }
+ private CheckedListBoxViewModel _viewModel = new();
+
+ public IEnumerable