about summary refs log tree commit diff
path: root/ModerationClient/Views/MainWindow/ClientView.axaml
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-08-08 02:57:34 +0200
committerRory& <root@rory.gay>2024-08-08 03:02:10 +0200
commitdf5fe7c86e41235f99a9b0d69519a18581eddd5e (patch)
treed7ae3b2c9b98ffcf4fbe4613091dfc7db7e2c62b /ModerationClient/Views/MainWindow/ClientView.axaml
parentList rooms (diff)
downloadModerationClient-df5fe7c86e41235f99a9b0d69519a18581eddd5e.tar.xz
Further work
Diffstat (limited to 'ModerationClient/Views/MainWindow/ClientView.axaml')
-rw-r--r--ModerationClient/Views/MainWindow/ClientView.axaml42
1 files changed, 42 insertions, 0 deletions
diff --git a/ModerationClient/Views/MainWindow/ClientView.axaml b/ModerationClient/Views/MainWindow/ClientView.axaml
new file mode 100644
index 0000000..ba030e4
--- /dev/null
+++ b/ModerationClient/Views/MainWindow/ClientView.axaml
@@ -0,0 +1,42 @@
+<UserControl xmlns="https://github.com/avaloniaui"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+             xmlns:views="clr-namespace:ModerationClient.Views"
+             xmlns:viewModels="clr-namespace:ModerationClient.ViewModels"
+             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+             x:Class="ModerationClient.Views.ClientView"
+             x:DataType="viewModels:ClientViewModel">
+    <Grid Width="{Binding $parent.Width}" Height="{Binding $parent.Height}" RowDefinitions="*, Auto">
+        <Grid Grid.Row="0">
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition Width="128" MinWidth="16" />
+                <ColumnDefinition Width="1" />
+                <ColumnDefinition Width="128" MinWidth="16" />
+                <ColumnDefinition Width="1" />
+                <ColumnDefinition Width="*" MinWidth="16" />
+            </Grid.ColumnDefinitions>
+            <TreeView Grid.Column="0" Background="Red" ItemsSource="{CompiledBinding DisplayedSpaces}" SelectedItem="{CompiledBinding CurrentSpace}">
+                <TreeView.ItemTemplate>
+                    <TreeDataTemplate ItemsSource="{Binding ChildSpaces}">
+                        <TextBlock Text="{Binding Name}" Height="20" />
+                    </TreeDataTemplate>
+                </TreeView.ItemTemplate>
+            </TreeView>
+            <GridSplitter Grid.Column="1" Background="Black" ResizeDirection="Columns" />
+            <!-- <Rectangle Grid.Column="2" Fill="Green" /> -->
+            <ListBox Grid.Column="2" Background="Green" ItemsSource="{CompiledBinding CurrentSpace.ChildRooms}">
+                <ListBox.ItemTemplate>
+                    <DataTemplate DataType="viewModels:RoomNode">
+                        <TextBlock Text="{CompiledBinding Name}" Height="20" />
+                    </DataTemplate>
+                </ListBox.ItemTemplate>
+            </ListBox>
+            <GridSplitter Grid.Column="3" Background="Black" ResizeDirection="Columns" />
+            <Rectangle Grid.Column="4" Fill="Blue" />
+        </Grid>
+        <Grid Grid.Row="1" ColumnDefinitions="Auto, *, Auto" Background="Black">
+            <Label Grid.Column="2" Content="{CompiledBinding Status}" />
+        </Grid>
+    </Grid>
+</UserControl>
\ No newline at end of file