89 lines
4.7 KiB
XML
89 lines
4.7 KiB
XML
<UserControl x:Class="MainModule.Views.ProtocolStartView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
prism:ViewModelLocator.AutoWireViewModel="True">
|
|
<Grid>
|
|
<!-- 背景:多层柔光圆 -->
|
|
<Grid.Background>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
|
|
<GradientStop Color="#E8F0FE" Offset="0"/>
|
|
<GradientStop Color="#F3E8FF" Offset="0.5"/>
|
|
<GradientStop Color="#FCE7F3" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Grid.Background>
|
|
|
|
<!-- 背景装饰光斑 -->
|
|
<Ellipse Width="200" Height="200" Fill="#93C5FD" Opacity="0.3"
|
|
HorizontalAlignment="Left" VerticalAlignment="Top" Margin="-50,-50,0,0"/>
|
|
<Ellipse Width="150" Height="150" Fill="#C4B5FD" Opacity="0.3"
|
|
HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,-30,-30"/>
|
|
|
|
<!-- 中心磨砂卡片 -->
|
|
<Border Width="380" Height="440" CornerRadius="20"
|
|
Background="#CCFFFFFF" BorderBrush="#E2E8F0" BorderThickness="1"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="40" ShadowDepth="0" Opacity="0.12"/>
|
|
</Border.Effect>
|
|
<Grid Margin="32">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- 顶部 -->
|
|
<StackPanel Grid.Row="0" HorizontalAlignment="Center">
|
|
<Border Width="64" Height="64" Background="#E0E7FF" CornerRadius="32">
|
|
<materialDesign:PackIcon Kind="Chip" Width="32" Height="32"
|
|
Foreground="#4F46E5"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
</Border>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0"
|
|
HorizontalAlignment="Center">
|
|
|
|
<TextBlock Text="{Binding TestStatus}" FontSize="13" Foreground="#64748B"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<!-- 中央按钮 -->
|
|
<Grid Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Button Width="130" Height="130"
|
|
Command="{Binding StartProtocolCommand}"
|
|
Background="#7C3AED" BorderBrush="#6D28D9" BorderThickness="0"
|
|
materialDesign:ElevationAssist.Elevation="Dp6">
|
|
<Button.Resources>
|
|
<Style TargetType="Border">
|
|
<Setter Property="CornerRadius" Value="65"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<materialDesign:PackIcon Kind="Power" Width="44" Height="44"
|
|
Foreground="#FFFFFF" HorizontalAlignment="Center"/>
|
|
<TextBlock Text="START" Margin="0,6,0,0"
|
|
FontSize="14" FontWeight="Bold"
|
|
Foreground="#FFFFFF" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Button>
|
|
</Grid>
|
|
|
|
<!-- 底部 -->
|
|
<StackPanel Grid.Row="2" HorizontalAlignment="Center">
|
|
<Border Background="#E0E7FF" CornerRadius="8" Padding="16,6">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Ellipse Width="8" Height="8" Fill="#4F46E5" Margin="0,0,6,0"/>
|
|
<TextBlock Text="系统准备中" FontSize="13"
|
|
FontWeight="Bold" Foreground="#4338CA"/>
|
|
</StackPanel>
|
|
</Border>
|
|
<TextBlock Text="点击按钮加载测试序列" Margin="0,10,0,0"
|
|
FontSize="12" Foreground="#94A3B8" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl> |