Files
SzmediTools/Szmedi.RvKits/MEPTools/MEPCurveSignWin.xaml
2025-09-16 16:06:41 +08:00

53 lines
2.8 KiB
XML

<controls:MaterialWindow
x:Class="Szmedi.RvKits.MEPTools.MEPCurveSignWin"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:Szmedi.RvKits.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Szmedi.RvKits.MEPTools"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
Title="管线标识"
Width="260"
Height="480"
SizeToContent="Height"
d:DataContext="{d:DesignInstance Type=local:MEPCurveSignViewModel}"
mc:Ignorable="d">
<controls:MaterialWindow.Resources>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</controls:MaterialWindow.Resources>
<Grid>
<StackPanel>
<GroupBox Header="管线类型:">
<UniformGrid Rows="1">
<CheckBox Content="管道" IsChecked="{Binding ContainPipes}"/>
<CheckBox Content="风管" IsChecked="{Binding ContainDucts}"/>
<CheckBox Content="桥架" IsChecked="{Binding ContainCableTrays}"/>
<CheckBox Content="线管" IsChecked="{Binding ContainConduits}"/>
</UniformGrid>
</GroupBox>
<GroupBox Header="标识规则">
<StackPanel>
<TextBox
md:TextFieldAssist.PrefixText="管径/宽度大于"
md:TextFieldAssist.SuffixText="mm"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding MinSize,UpdateSourceTrigger=PropertyChanged,ValidatesOnExceptions=True}" />
<TextBox
md:TextFieldAssist.PrefixText="长度大于"
md:TextFieldAssist.SuffixText="mm"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding MinLength,UpdateSourceTrigger=PropertyChanged,ValidatesOnExceptions=True}" />
<CheckBox Content="使用流向箭头" IsChecked="{Binding UseArrow}"/>
</StackPanel>
</GroupBox>
<Button Content="添加标识" Command="{Binding CreateSignsCommand}"/>
<TextBlock Text="桥架线管默认标识为设备类型&#x0A;其他管线为系统类型" Foreground="Red" FontSize="12"/>
<StackPanel>
<TextBox md:TextFieldAssist.PrefixText="新标识:" Text="{Binding NewSign,UpdateSourceTrigger=PropertyChanged}"/>
<Button Command="{Binding BatchSignsCommand}" Content="批量修改" ToolTip="选中管线,批量修改管线上的标识"/>
</StackPanel>
</StackPanel>
</Grid>
</controls:MaterialWindow>