130 lines
6.1 KiB
Plaintext
130 lines
6.1 KiB
Plaintext
|
|
<Window x:Class="自救器呼吸器综合检验仪.DetectionMenuWindow"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:local="clr-namespace:自救器呼吸器综合检验仪"
|
||
|
|
Title="检验功能选择" Height="700" Width="1200"
|
||
|
|
WindowStartupLocation="CenterScreen"
|
||
|
|
FontFamily="Segoe UI"
|
||
|
|
Background="#F5F7FA">
|
||
|
|
<Window.DataContext>
|
||
|
|
<local:MainViewModel />
|
||
|
|
</Window.DataContext>
|
||
|
|
<Window.Resources>
|
||
|
|
<!-- 颜色定义 -->
|
||
|
|
<SolidColorBrush x:Key="PrimaryColor">#2C3E50</SolidColorBrush>
|
||
|
|
<SolidColorBrush x:Key="SecondaryColor">#3498DB</SolidColorBrush>
|
||
|
|
<SolidColorBrush x:Key="AccentColor">#E74C3C</SolidColorBrush>
|
||
|
|
<SolidColorBrush x:Key="White">White</SolidColorBrush>
|
||
|
|
<SolidColorBrush x:Key="BorderColor">#E1E8ED</SolidColorBrush>
|
||
|
|
<SolidColorBrush x:Key="TextGray">#7F8C8D</SolidColorBrush>
|
||
|
|
|
||
|
|
<!-- 卡片样式 -->
|
||
|
|
<Style x:Key="CardStyle" TargetType="Border">
|
||
|
|
<Setter Property="Background" Value="{StaticResource White}"/>
|
||
|
|
<Setter Property="BorderThickness" Value="1"/>
|
||
|
|
<Setter Property="BorderBrush" Value="{StaticResource BorderColor}"/>
|
||
|
|
<Setter Property="Margin" Value="15"/>
|
||
|
|
<Setter Property="Effect">
|
||
|
|
<Setter.Value>
|
||
|
|
<DropShadowEffect BlurRadius="20" Opacity="0.1" ShadowDepth="4"/>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<!-- 标题样式 -->
|
||
|
|
<Style x:Key="TitleTextStyle" TargetType="TextBlock">
|
||
|
|
<Setter Property="FontSize" Value="24"/>
|
||
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||
|
|
<Setter Property="Foreground" Value="{StaticResource PrimaryColor}"/>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<!-- 检验按钮基础样式 -->
|
||
|
|
<Style x:Key="DetectionButtonBaseStyle" TargetType="Button">
|
||
|
|
<Setter Property="Background" Value="{StaticResource SecondaryColor}"/>
|
||
|
|
<Setter Property="Foreground" Value="White"/>
|
||
|
|
<Setter Property="FontSize" Value="20"/>
|
||
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||
|
|
<Setter Property="Padding" Value="20 12"/>
|
||
|
|
<Setter Property="BorderThickness" Value="0"/>
|
||
|
|
<Setter Property="Cursor" Value="Hand"/>
|
||
|
|
<Setter Property="Margin" Value="10"/>
|
||
|
|
<Setter Property="Height" Value="70"/>
|
||
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<!-- 返回按钮样式 -->
|
||
|
|
<Style x:Key="ReturnButtonStyle" TargetType="Button">
|
||
|
|
<Setter Property="Background" Value="{StaticResource AccentColor}"/>
|
||
|
|
<Setter Property="Foreground" Value="White"/>
|
||
|
|
<Setter Property="FontSize" Value="16"/>
|
||
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||
|
|
<Setter Property="Padding" Value="15 8"/>
|
||
|
|
<Setter Property="BorderThickness" Value="0"/>
|
||
|
|
<Setter Property="Cursor" Value="Hand"/>
|
||
|
|
<Setter Property="Height" Value="50"/>
|
||
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||
|
|
</Style>
|
||
|
|
</Window.Resources>
|
||
|
|
|
||
|
|
<Grid Margin="20">
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<!-- 顶部标题栏 -->
|
||
|
|
<Border Grid.Row="0" Background="{StaticResource White}" Margin="0 0 0 20"
|
||
|
|
BorderThickness="1" BorderBrush="{StaticResource BorderColor}">
|
||
|
|
<Grid Margin="20 15">
|
||
|
|
<TextBlock Text="自救器呼吸器综合检验仪" Style="{StaticResource TitleTextStyle}"/>
|
||
|
|
<TextBlock Text="检验功能选择界面" FontSize="14" Foreground="{StaticResource TextGray}" Margin="0 30 0 0"/>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 中间检验按钮区域 -->
|
||
|
|
<Border Grid.Row="1" Style="{StaticResource CardStyle}">
|
||
|
|
<Grid Margin="50 30">
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<Button Grid.Row="0" Style="{StaticResource DetectionButtonBaseStyle}">
|
||
|
|
<StackPanel Orientation="Vertical">
|
||
|
|
<TextBlock Text="定量供氧检验"/>
|
||
|
|
<TextBlock Text="TBK_0(M-61)" Foreground="Red" FontSize="12" Margin="0 3 0 0"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
<Button Grid.Row="1" Style="{StaticResource DetectionButtonBaseStyle}">
|
||
|
|
<StackPanel Orientation="Vertical">
|
||
|
|
<TextBlock Text="负压气密性检验"/>
|
||
|
|
<TextBlock Text="TBK_1(M-62)" Foreground="Red" FontSize="12" Margin="0 3 0 0"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
<Button Grid.Row="2" Style="{StaticResource DetectionButtonBaseStyle}">
|
||
|
|
<StackPanel Orientation="Vertical">
|
||
|
|
<TextBlock Text="正压气密性检验"/>
|
||
|
|
<TextBlock Text="TBK_2(M-63)" Foreground="Red" FontSize="12" Margin="0 3 0 0"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
<Button Grid.Row="3" Style="{StaticResource DetectionButtonBaseStyle}">
|
||
|
|
<StackPanel Orientation="Vertical">
|
||
|
|
<TextBlock Text="排气阀开启压力检验"/>
|
||
|
|
<TextBlock Text="TBK_3(M-64)" Foreground="Red" FontSize="12" Margin="0 3 0 0"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Button>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 底部返回按钮 -->
|
||
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0 10 20 0">
|
||
|
|
<Button Content="返回主页" Tag="FK_4" Style="{StaticResource ReturnButtonStyle}" Click="ReturnToMain_Click"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</Window>
|