Files
ShrlAlgoToolkit/Sai.RvKits/RvIndependent/MetroTunnel/MetroTunnelView.xaml

74 lines
2.9 KiB
Plaintext
Raw Normal View History

2024-09-22 11:05:41 +08:00
<ex:FluentWindowEx
x:Class="Sai.RvKits.RvIndependent.MetroTunnelView"
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:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:metroTunnel="clr-namespace:Sai.RvKits.RvIndependent"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
Title="简易盾构区间"
Width="500"
Height="280"
MinWidth="300"
d:DataContext="{d:DesignInstance Type=metroTunnel:MetroTunnelViewModel}"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/Sai.RvKits;component/WPFUI.xaml" />
</Window.Resources>
<ex:AutoGrid
ChildMargin="5"
Columns="*,*"
Rows="Auto,Auto,Auto,Auto,*">
<ex:TextBoxEx
Prefix="邻接块(前)角度"
Suffix="°"
Text="{Binding FrontTubeAngle}"
ToolTip="值域50~90°" />
<ex:TextBoxEx
Prefix="标准块角度"
Suffix="°"
Text="{Binding StandardTubeAngle}"
ToolTip="值域60~90°" />
<ex:TextBoxEx
Prefix="邻接块(后)角度"
Suffix="°"
Text="{Binding BackTubeAngle}"
ToolTip="值域50~90°" />
<ex:TextBoxEx
Prefix="标准块一侧角度"
Suffix="°"
Text="{Binding StartAngle}"
ToolTip="路线前进方向反向观察,标准块一侧角度,值域0~90°" />
<ex:TextBoxEx
Prefix="错缝变化角度"
Suffix="°"
Text="{Binding StaggerAngle}"
ToolTip="值域0~90°" />
<ex:TextBoxEx
Prefix="隧道管片外径"
Suffix="mm"
Text="{Binding TubeOuterDiameter}"
ToolTip="值域6000~10000mm" />
<ex:TextBoxEx
Prefix="管片厚度"
Suffix="mm"
Text="{Binding TubeThickness}"
ToolTip="值域200~500mm" />
<ex:TextBoxEx
Prefix="管片宽度"
Suffix="mm"
Text="{Binding TubeWidth}"
ToolTip="值域1000~3000mm" />
<ComboBox SelectedIndex="{Binding AssembleSelectedIndex, UpdateSourceTrigger=PropertyChanged}" ToolTip="错缝形式">
<ComboBoxItem Content="通缝拼装" />
<ComboBoxItem Content="摇摆错缝拼装" />
<ComboBoxItem Content="顺时针错缝拼装" />
<ComboBoxItem Content="逆时针错缝拼装" />
</ComboBox>
<Button
Command="{Binding ConfirmCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}"
Content="布置" />
</ex:AutoGrid>
</ex:FluentWindowEx>