You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
3.8 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="500">
<Grid.RowDefinitions>
<!-- 第一排 -->
<RowDefinition Height="8*" />
<!-- 第二排 -->
<RowDefinition Height="5*" />
</Grid.RowDefinitions>
<!-- 第一排按钮 -->
<Button Grid.Row="0" HorizontalAlignment="Stretch" Height="500"
Background="Transparent" BorderBrush="Azure" >
<Viewbox HorizontalAlignment="Stretch" >
<Grid Margin="15 " >
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Image Grid.Row="0" Source="pack://application:,,,/Resource/Images/diam_3x.png" Height="200" />
<Image Grid.Row="1" Margin=" 0 -40 0 10" Source="pack://application:,,,/Resource/Images/hand_3x.png" Height="100" />
<TextBlock Grid.Row="2" Text="1{DynamicResource StartTest}" FontSize="32"
TextAlignment="Center" Foreground="Azure"/>
</Grid>
</Viewbox>
</Button>
<!-- 第二排两个按钮 -->
<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>