diff options
Diffstat (limited to 'JVDesktop/Views/DashboardView.axaml')
| -rw-r--r-- | JVDesktop/Views/DashboardView.axaml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/JVDesktop/Views/DashboardView.axaml b/JVDesktop/Views/DashboardView.axaml new file mode 100644 index 0000000..553754f --- /dev/null +++ b/JVDesktop/Views/DashboardView.axaml @@ -0,0 +1,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 Greeting}" + HorizontalAlignment="Center" + VerticalAlignment="Center" + /> + <Button + Content="Click" + Command="{Binding ButtonClickCommand}" + Margin="0,10,0,0" + /> + </StackPanel> + </Border> + + <!-- Footer --> + <Border Grid.Row="2" Background="#424242"> + <TextBlock + Text="Footer" + HorizontalAlignment="Center" + VerticalAlignment="Center" + /> + </Border> + </Grid> + +</Window> |
