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

45 lines
2.3 KiB
XML

<controls:MaterialWindow
x:Class="Szmedi.RvKits.MEPTools.ArrangeMEPCurveView"
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:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
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="270"
MinHeight="180"
d:DataContext="{d:DesignInstance Type=local:ArrangeMEPCurveViewModel}"
SizeToContent="Height"
mc:Ignorable="d">
<controls:MaterialWindow.Resources>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</controls:MaterialWindow.Resources>
<StackPanel Margin="5">
<GroupBox Header="参考方向">
<UniformGrid Rows="1">
<RadioButton Content="水平方向" IsChecked="{Binding IsHorizon}" />
<RadioButton Content="垂直方向" IsChecked="{Binding IsHorizon, Converter={x:Static md:InvertBooleanConverter.Instance}}" />
</UniformGrid>
</GroupBox>
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Margin="5,0,5,0" Text="间距:" />
<TextBox Grid.Column="1" Margin="5,0,5,0" Text="{Binding Gap, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Grid.Column="2" Margin="5,0,5,0" Text="mm" />
</Grid>
<UniformGrid Rows="1">
<RadioButton Content="管中心" IsChecked="{Binding MEPCurveCenter}" />
<RadioButton Content="管外壁/考虑保温层" IsChecked="{Binding MEPCurveCenter, Converter={x:Static md:InvertBooleanConverter.Instance}}" ToolTip="若无保温,则仅考虑管外壁" />
</UniformGrid>
<Button HorizontalAlignment="Stretch" Command="{Binding ArrangeCommand}" Content="整理" />
</StackPanel>
</controls:MaterialWindow>