about summary refs log tree commit diff
path: root/ModerationClient/Views/ClientView.axaml
blob: 0ed802128d74229db74eacc13b58d1b41c10fb29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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="*,20">
        <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}" />
                    </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">
                        <Label Content="{CompiledBinding Name}" />
                    </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">
            <Label Grid.Column="2">Text here</Label>
        </Grid>
    </Grid>
</UserControl>