summaryrefslogtreecommitdiff
path: root/JVDesktop/Views/DashboardView.axaml
blob: 1f0a0c40bff19ef2983eab62773faf14fdbffc6c (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<Window
    xmlns="https://github.com/avaloniaui"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vm="using:JVDesktop.ViewModels"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignWidth="800"
    d:DesignHeight="550"
    x:Class="JVDesktop.Views.DashboardView"
    x:DataType="vm:DashboardViewModel"
    Icon="/Assets/avalonia-logo.ico"
    Title="JVDesktop"
    Width="800"
    Height="550"
    MinWidth="550"
    MinHeight="400"
    WindowStartupLocation="CenterScreen"
    ExtendClientAreaToDecorationsHint="True"
>

    <Design.DataContext>
        <vm:DashboardViewModel />
    </Design.DataContext>

    <Grid RowDefinitions="65,*,32">

    <!-- Header -->
    <Border Grid.Row="0" Background="#424242" PointerPressed="MoveWindow">
        <TextBlock
                Text="Header"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
            />
    </Border>

        <!-- Content -->
        <Border Grid.Row="1" Background="Black">
            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock
                    Text="{Binding WorkspaceInitialized}"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                />
                <Button
                    Content="Click"
                    Click="SetupWorkspace"
                    Margin="0,10,0,0"
                />
            </StackPanel>
        </Border>

        <!-- Footer -->
        <Border Grid.Row="2" Background="#424242">
            <TextBlock
                Text="Footer"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
            />
        </Border>
    </Grid>

</Window>