73 lines
3.0 KiB

<Border x:Class="SparkClient.Views.BaseWindow.HomeWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:SparkClient.Views.BaseWindow"
xmlns:baseWindow="clr-namespace:SparkClient.ViewModel.BaseWindow"
mc:Ignorable="d"
>
<!-- Height="450" Width="800" -->
<Border.Background>
<ImageBrush ImageSource="pack://application:,,,/Resource/Images/homebg.png" Stretch="UniformToFill" />
</Border.Background>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- 左侧占位 -->
<Grid Grid.Column="0"></Grid>
<!-- 右侧主内容 -->
<Grid Grid.Column="1" VerticalAlignment="Center" Height="800" Width="600">
<Grid.RowDefinitions>
<!-- 第一排 -->
<RowDefinition Height="8*" />
<!-- 第二排 -->
<RowDefinition Height="5*" />
</Grid.RowDefinitions>
<!-- 第一排按钮 -->
<Border Grid.Row="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="LightBlue">
<TextBlock Text="按钮 1" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" />
</Border>
<!-- 第二排两个按钮 -->
<Grid Grid.Row="1" Margin="0 10 0 0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- 第二排第一个按钮 -->
<Border Grid.Column="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="LightCoral">
<TextBlock Text="按钮 2" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" />
</Border>
<Border Grid.Column="1" Width="10" />
<!-- 第二排第二个按钮 -->
<Border Grid.Column="2"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="LightGreen">
<Button Content="帮助" VerticalAlignment="Center" HorizontalAlignment="Center"
Command="{Binding ShowHelperPageCommand}" >
</Button>
</Border>
</Grid>
</Grid>
</Grid>
</Border>