about summary refs log tree commit diff
path: root/MatrixRoomUtils.Desktop/MainWindow.axaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Desktop/MainWindow.axaml.cs')
-rw-r--r--MatrixRoomUtils.Desktop/MainWindow.axaml.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/MatrixRoomUtils.Desktop/MainWindow.axaml.cs b/MatrixRoomUtils.Desktop/MainWindow.axaml.cs
index 9db59c5..6ef573e 100644
--- a/MatrixRoomUtils.Desktop/MainWindow.axaml.cs
+++ b/MatrixRoomUtils.Desktop/MainWindow.axaml.cs
@@ -1,5 +1,7 @@
 using Avalonia.Controls;
 using Avalonia.Interactivity;
+using MatrixRoomUtils.Abstractions;
+using MatrixRoomUtils.Desktop.Components;
 using Microsoft.Extensions.DependencyInjection;
 using Microsoft.Extensions.Logging;
 
@@ -26,7 +28,6 @@ public partial class MainWindow : Window {
         _logger.LogInformation("Cache location: {}", _configuration.CacheStoragePath);
         _logger.LogInformation("Data location: {}", _configuration.DataStoragePath);
 
-
         // for (int i = 0; i < 100; i++) {
         // roomList.Children.Add(new RoomListEntry());
         // }
@@ -39,12 +40,18 @@ public partial class MainWindow : Window {
         var rooms = await hs.GetJoinedRooms();
         foreach (var room in rooms) {
             // roomList.Children.Add(new RoomListEntry(_scopeFactory, new RoomInfo(room)));
+
+            windowContent.Push("home", new RoomListEntry() {
+                Room = new RoomInfo() {
+                    Room = room
+                }
+            });
+            base.OnLoaded(e);
         }
-        base.OnLoaded(e);
     }
 
     // public Command
     // protected void LoadedCommand() {
     // _logger.LogInformation("async command");
     // }
-}
+}
\ No newline at end of file