This commit is contained in:
54
Main.xaml
54
Main.xaml
@@ -1,14 +1,51 @@
|
||||
<Window x:Class="ShanghaiEnvironmentalTechnology.Main"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="睡眠呼吸暂停治疗面桌多功能测试仪"
|
||||
Height="768" Width="1024" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"
|
||||
>
|
||||
<!-- 背景色 -->
|
||||
Title="{DynamicResource WindowTitle}"
|
||||
Height="768" Width="1024" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Window.Resources>
|
||||
<Style x:Key="ControlCombStyle" TargetType="ComboBox">
|
||||
<Setter Property="Background" Value="#FF4A86E8"/>
|
||||
<Setter Property="Foreground" Value="Orange" />
|
||||
<Setter Property="FontSize" Value="16"/>
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="Height" Value="32"/>
|
||||
<Setter Property="Width" Value="100"/>
|
||||
<Setter Property="Margin" Value="4"/>
|
||||
</Style>
|
||||
<Style x:Key="ControlCombItemStyle" TargetType="ComboBoxItem">
|
||||
<Setter Property="Background" Value="#FF4A86E8"/>
|
||||
<Setter Property="Foreground" Value="White"/>
|
||||
<Setter Property="FontSize" Value="16"/>
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="Height" Value="32"/>
|
||||
<Setter Property="Width" Value="80"/>
|
||||
<Setter Property="Margin" Value="4"/>
|
||||
</Style>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<!-- 右上角语言选择下拉框 -->
|
||||
<ComboBox Name="cmbMaterial"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Top"
|
||||
Margin="10,10,10,0"
|
||||
Width="100"
|
||||
Style="{StaticResource ControlCombStyle}"
|
||||
SelectionChanged="cmbMaterial_SelectionChanged">
|
||||
<ComboBoxItem Style="{StaticResource ControlCombItemStyle}">中文</ComboBoxItem>
|
||||
<ComboBoxItem Style="{StaticResource ControlCombItemStyle}">English</ComboBoxItem>
|
||||
</ComboBox>
|
||||
|
||||
<!-- 标题文本(带呼吸动画) -->
|
||||
<TextBlock x:Name="BreathingText"
|
||||
Text="睡眠呼吸暂停治疗面桌多功能测试仪"
|
||||
Text="{DynamicResource WindowTitle}"
|
||||
FontSize="24"
|
||||
FontWeight="Bold"
|
||||
HorizontalAlignment="Center"
|
||||
@@ -21,7 +58,8 @@
|
||||
</TextBlock.RenderTransform>
|
||||
</TextBlock>
|
||||
|
||||
<Button Content="进入"
|
||||
<!-- 底部进入按钮 -->
|
||||
<Button Content="{DynamicResource Deformation7}"
|
||||
Width="100"
|
||||
Height="40"
|
||||
HorizontalAlignment="Center"
|
||||
@@ -29,9 +67,9 @@
|
||||
Margin="0,0,0,30"
|
||||
Style="{StaticResource MyButtonStyle}"
|
||||
Click="Button_Click"/>
|
||||
<!-- 设置Click事件 -->
|
||||
</Grid>
|
||||
|
||||
<!-- 窗口加载时启动标题缩放动画(呼吸效果) -->
|
||||
<Window.Triggers>
|
||||
<EventTrigger RoutedEvent="Window.Loaded">
|
||||
<BeginStoryboard>
|
||||
@@ -48,4 +86,4 @@
|
||||
</BeginStoryboard>
|
||||
</EventTrigger>
|
||||
</Window.Triggers>
|
||||
</Window>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user