Files
ShrlAlgoToolkit/ShrlAlgo.RvKits/RvMEP/ArrangeMEPCurveView.xaml

46 lines
1.9 KiB
Plaintext
Raw Normal View History

<ui:FluentWindowEx
x:Class="ShrlAlgo.RvKits.RvMEP.ArrangeMEPCurveView"
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:ui="https://github.com/ShrlAlgo/WPFluent"
xmlns:local="clr-namespace:ShrlAlgo.RvKits.RvMEP"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="整理管线"
Width="270"
MinHeight="180"
d:DataContext="{d:DesignInstance Type=local:ArrangeMEPCurveViewModel}"
SizeToContent="Height"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgo.RvKits;component/WPFUI.xaml" />
</Window.Resources>
<ui:StackPanelEx Margin="5" Spacing="5">
<GroupBox Header="参考方向">
<UniformGrid Rows="1">
<RadioButton Content="水平方向" IsChecked="{Binding IsHorizon}" />
<RadioButton Content="垂直方向" IsChecked="{Binding IsHorizon, Converter={StaticResource InvertBooleanConverter}}" />
</UniformGrid>
</GroupBox>
<ui:TextBoxEx
Prefix="间距:"
Suffix="mm"
Text="{Binding Gap, UpdateSourceTrigger=PropertyChanged}" />
<UniformGrid Rows="1">
<RadioButton
MinWidth="50"
Content="管中心"
IsChecked="{Binding MEPCurveCenter}" />
<RadioButton
Content="管外壁/考虑保温层"
IsChecked="{Binding MEPCurveCenter, Converter={StaticResource InvertBooleanConverter}}"
ToolTip="若无保温,则仅考虑管外壁" />
</UniformGrid>
<Button
HorizontalAlignment="Stretch"
Command="{Binding ArrangeCommand}"
Content="整理" />
</ui:StackPanelEx>
</ui:FluentWindowEx>