182 lines
6.4 KiB
XML
182 lines
6.4 KiB
XML
<Window
|
|
x:Class="MetroGauges.WpfTurnout"
|
|
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"
|
|
Title="道岔建筑限界计算"
|
|
Width="800"
|
|
Height="220"
|
|
MinWidth="850"
|
|
MinHeight="250"
|
|
Background="{DynamicResource MaterialDesignPaper}"
|
|
Closing="MetroWindow_Closing"
|
|
FontFamily="{StaticResource MaterialDesignFont}"
|
|
Icon="/MetroGauges;component/Resources/Icon/道岔.png"
|
|
Loaded="MetroWindow_Loaded"
|
|
ResizeMode="NoResize"
|
|
TextElement.FontSize="13"
|
|
TextElement.FontWeight="Regular"
|
|
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
|
|
TextOptions.TextFormattingMode="Ideal"
|
|
TextOptions.TextRenderingMode="Auto"
|
|
WindowStartupLocation="CenterScreen"
|
|
mc:Ignorable="d">
|
|
<WrapPanel>
|
|
|
|
<GroupBox
|
|
x:Name="groupBox2"
|
|
Margin="5"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Header="车型选择">
|
|
<StackPanel Orientation="Vertical">
|
|
<RadioButton
|
|
x:Name="rbA"
|
|
HorizontalAlignment="Left"
|
|
Checked="rbA_Checked"
|
|
Content="A型车"
|
|
IsChecked="True" />
|
|
<RadioButton
|
|
x:Name="rbB"
|
|
HorizontalAlignment="Left"
|
|
Checked="rbB_Checked"
|
|
Content="B型车" />
|
|
</StackPanel>
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
x:Name="groupBox"
|
|
Width="360"
|
|
Margin="5"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Header="参数">
|
|
<WrapPanel x:Name="WpPanel">
|
|
<Label
|
|
x:Name="label_Copy2"
|
|
Width="230"
|
|
Content="Y 车体轮廓线上一点的纵坐标" />
|
|
<TextBox
|
|
x:Name="Y"
|
|
Width="75"
|
|
Height="23"
|
|
HorizontalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
DataObject.Pasting="TextBoxPasting"
|
|
PreviewTextInput="previewTextInput"
|
|
TextWrapping="Wrap" />
|
|
<Label
|
|
x:Name="label"
|
|
Width="230"
|
|
Content="R 曲线半径" />
|
|
<TextBox
|
|
x:Name="R"
|
|
Width="75"
|
|
Height="23"
|
|
HorizontalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
DataObject.Pasting="TextBoxPasting"
|
|
PreviewTextInput="previewTextInput"
|
|
TextWrapping="Wrap" />
|
|
<Label
|
|
x:Name="label1"
|
|
HorizontalAlignment="Left"
|
|
Content="m" />
|
|
<Label
|
|
x:Name="label_Copy1"
|
|
Width="230"
|
|
Content="v 车辆过岔速度" />
|
|
<TextBox
|
|
x:Name="V"
|
|
Width="75"
|
|
Height="23"
|
|
HorizontalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
DataObject.Pasting="TextBoxPasting"
|
|
PreviewTextInput="previewTextInput"
|
|
TextWrapping="Wrap" />
|
|
<Label
|
|
x:Name="label1_Copy1"
|
|
HorizontalAlignment="Left"
|
|
Content="km/h" />
|
|
</WrapPanel>
|
|
</GroupBox>
|
|
<GroupBox
|
|
Width="333"
|
|
Margin="5"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Header="动态偏移量计算"
|
|
IsEnabled="False">
|
|
<WrapPanel>
|
|
<Label
|
|
x:Name="label46_Copy2"
|
|
Width="170"
|
|
Height="26"
|
|
Content="a 车体横向加速度" />
|
|
<TextBox
|
|
x:Name="a"
|
|
Width="75"
|
|
Height="23"
|
|
HorizontalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
DataObject.Pasting="TextBoxPasting"
|
|
IsEnabled="False"
|
|
TextWrapping="Wrap" />
|
|
<Label
|
|
x:Name="label45_Copy2"
|
|
Width="70"
|
|
Height="26"
|
|
Content="m/s2" />
|
|
<Label
|
|
x:Name="label46_Copy3"
|
|
Width="170"
|
|
Height="26"
|
|
Content="F 计算车体横向加速度作用力" />
|
|
<TextBox
|
|
x:Name="F"
|
|
Width="75"
|
|
Height="23"
|
|
HorizontalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
DataObject.Pasting="TextBoxPasting"
|
|
IsEnabled="False"
|
|
TextWrapping="Wrap" />
|
|
<Label
|
|
x:Name="label45_Copy3"
|
|
Width="70"
|
|
Height="26"
|
|
Content="N" />
|
|
<Label
|
|
x:Name="label46_Copy5"
|
|
Width="170"
|
|
Height="26"
|
|
Content="ΔXqa 车体横向加宽量" />
|
|
<TextBox
|
|
x:Name="ΔXqa"
|
|
Width="75"
|
|
Height="23"
|
|
HorizontalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
DataObject.Pasting="TextBoxPasting"
|
|
IsEnabled="False"
|
|
TextWrapping="Wrap" />
|
|
<Label
|
|
x:Name="label45_Copy4"
|
|
Width="70"
|
|
Height="26"
|
|
Content="mm" />
|
|
</WrapPanel>
|
|
</GroupBox>
|
|
<Button
|
|
x:Name="btnCal"
|
|
Width="75"
|
|
Margin="700,0,0,0"
|
|
Click="btnCal_Click"
|
|
Content="计算" />
|
|
|
|
</WrapPanel>
|
|
</Window>
|