Files
MetroGauges-Old/MetroGauges/WpfStartup.xaml
2026-02-23 17:02:55 +08:00

187 lines
6.4 KiB
XML

<Window
x:Class="MetroGauges.WpfStartup"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:system="clr-namespace:System;assembly=mscorlib"
Title="地铁限界"
Width="1280"
Height="720"
AllowsTransparency="True"
Icon="Resources/Icon/车辆限界.png"
Loaded="MetroWindow_Loaded"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
mc:Ignorable="d">
<Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="5*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.Background>
<ImageBrush ImageSource="Resources/Interface/界面.png" />
</Grid.Background>
<StackPanel
Grid.Column="3"
Width="98"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Orientation="Horizontal">
<Button
x:Name="WindowMinimize"
Width="48"
Height="48"
Margin="1,0"
Padding="0"
Background="White"
Click="WindowMinimize_Click"
Style="{DynamicResource MaterialDesignFlatButton}"
ToolTip="最小化">
<materialDesign:PackIcon
Width="40"
Height="40"
Kind="WindowMinimize" />
</Button>
<Button
x:Name="WindowClose"
Width="48"
Height="48"
Margin="1,0"
Padding="0"
Background="White"
Click="WindowClose_Click"
Style="{DynamicResource MaterialDesignFlatButton}"
ToolTip="关闭">
<materialDesign:PackIcon
Width="40"
Height="40"
Kind="WindowClose" />
</Button>
</StackPanel>
<Button
Grid.Row="1"
Width="160"
Height="160"
Margin="80,0,0,340"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Click="VG_Click"
Cursor="Hand"
Style="{StaticResource MaterialDesignFloatingActionLightButton}"
ToolTip="车辆限界">
<Button.Background>
<ImageBrush ImageSource="Resources/Icon/车辆限界.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
Grid.Row="1"
Grid.Column="1"
Width="160"
Height="160"
Margin="80,0,0,340"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Click="LG_Click"
Cursor="Hand"
Style="{StaticResource MaterialDesignFloatingActionLightButton}"
ToolTip="直线设备限界">
<Button.Background>
<ImageBrush ImageSource="Resources/Icon/直线设备限界.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
Grid.Row="1"
Grid.Column="2"
Width="160"
Height="160"
Margin="0,0,80,340"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Click="CG_Click"
Cursor="Hand"
Style="{StaticResource MaterialDesignFloatingActionLightButton}"
ToolTip="曲线设备限界">
<Button.Background>
<ImageBrush ImageSource="Resources/Icon/曲线设备限界.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
Grid.Row="1"
Grid.Column="3"
Width="160"
Height="160"
Margin="0,0,80,340"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Click="CtG_Click"
Cursor="Hand"
Style="{StaticResource MaterialDesignFloatingActionLightButton}"
ToolTip="建筑限界">
<Button.Background>
<ImageBrush ImageSource="Resources/Icon/建筑限界.png" Stretch="Uniform" />
</Button.Background>
</Button>
<Button
Grid.Row="1"
Grid.Column="1"
Width="160"
Height="160"
Margin="80,0,0,45"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"
Click="DcG_Click"
Cursor="Hand"
FontSize="18"
Style="{StaticResource MaterialDesignFloatingActionLightButton}"
ToolTip="道岔建筑限界">
<Button.Background>
<ImageBrush ImageSource="Resources/Icon/道岔.png" />
</Button.Background>
</Button>
<Button
Grid.Row="1"
Grid.Column="2"
Width="160"
Height="160"
Margin="0,0,80,45"
Padding="2"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Click="OtG_Click"
Cursor="Hand"
FontSize="18"
Style="{StaticResource MaterialDesignFloatingActionLightButton}"
ToolTip="其他建筑限界">
<Button.Background>
<ImageBrush ImageSource="Resources/Icon/其他.png" />
</Button.Background>
</Button>
<Label
Margin="35,23,35,20"
Content="地 铁 限 界"
FontFamily="STKaiti"
FontSize="48"
FontWeight="Bold"
Foreground="{DynamicResource PrimaryHueMidBrush}" />
<Label
Grid.RowSpan="2"
Height="54"
Margin="44,72,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Content="MetroGauges"
FontFamily="Source Han Sans CN"
FontSize="30"
Foreground="{DynamicResource PrimaryHueMidBrush}" />
</Grid>
</Window>