添加项目文件。
This commit is contained in:
85
MainModule/Views/ProtocolStartView.xaml
Normal file
85
MainModule/Views/ProtocolStartView.xaml
Normal file
@@ -0,0 +1,85 @@
|
||||
<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="0,1">
|
||||
<GradientStop Color="#F8FAFC" Offset="0"/>
|
||||
<GradientStop Color="#E2E8F0" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Grid.Background>
|
||||
|
||||
<materialDesign:Card Width="320" Height="380"
|
||||
UniformCornerRadius="16"
|
||||
Background="#FFFFFF"
|
||||
materialDesign:ElevationAssist.Elevation="Dp4"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
|
||||
<Grid Margin="30">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Grid.Row="0" HorizontalAlignment="Center" Margin="0,8,0,0">
|
||||
<materialDesign:PackIcon Kind="Chip"
|
||||
Width="24" Height="24"
|
||||
HorizontalAlignment="Center"
|
||||
Foreground="#94A3B8"/>
|
||||
<TextBlock Text="{Binding TestStatus}"
|
||||
FontSize="15"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="#64748B"
|
||||
Margin="0,6,0,0"
|
||||
HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Ellipse Width="150" Height="150" Fill="#F1F5F9"/>
|
||||
<Ellipse Width="130" Height="130" Fill="#E2E8F0"/>
|
||||
|
||||
<Button Command="{Binding StartProtocolCommand}"
|
||||
Width="110" Height="110"
|
||||
Style="{StaticResource MaterialDesignFloatingActionDarkButton}"
|
||||
Background="#1E293B"
|
||||
BorderBrush="#334155"
|
||||
BorderThickness="2"
|
||||
materialDesign:ElevationAssist.Elevation="Dp6"
|
||||
materialDesign:RippleAssist.Feedback="#38BDF8">
|
||||
<Button.Resources>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="CornerRadius" Value="55"/>
|
||||
</Style>
|
||||
</Button.Resources>
|
||||
|
||||
<materialDesign:PackIcon Kind="Play"
|
||||
Width="48" Height="48"
|
||||
Foreground="#38BDF8"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="4,0,0,0"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
<StackPanel Grid.Row="2" HorizontalAlignment="Center" Margin="0,0,0,8">
|
||||
<TextBlock Text="READY"
|
||||
FontSize="13"
|
||||
FontWeight="Black"
|
||||
Foreground="#10B981"
|
||||
HorizontalAlignment="Center"/>
|
||||
<TextBlock Text="点击按钮加载测试序列"
|
||||
FontSize="12"
|
||||
Foreground="#94A3B8"
|
||||
Margin="0,4,0,0"
|
||||
HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</materialDesign:Card>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user