2025-02-10 20:53:40 +08:00
|
|
|
<ui:FluentWindowEx
|
|
|
|
|
x:Class="ShrlAlgo.RvKits.RvMEP.ArrangeMEPCurveView"
|
2024-10-27 00:19:48 +08:00
|
|
|
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"
|
2025-02-10 20:53:40 +08:00
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
|
|
|
|
|
|
|
|
|
xmlns:local="clr-namespace:ShrlAlgo.RvKits.RvMEP"
|
2024-10-27 00:19:48 +08:00
|
|
|
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>
|
2025-04-24 20:56:10 +08:00
|
|
|
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
2024-10-27 00:19:48 +08:00
|
|
|
</Window.Resources>
|
2025-04-24 20:56:10 +08:00
|
|
|
<ui:StackPanel Margin="5" Spacing="5">
|
2024-10-27 00:19:48 +08:00
|
|
|
<GroupBox Header="参考方向">
|
|
|
|
|
<UniformGrid Rows="1">
|
|
|
|
|
<RadioButton Content="水平方向" IsChecked="{Binding IsHorizon}" />
|
|
|
|
|
<RadioButton Content="垂直方向" IsChecked="{Binding IsHorizon, Converter={StaticResource InvertBooleanConverter}}" />
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
</GroupBox>
|
2025-02-10 20:53:40 +08:00
|
|
|
<ui:TextBoxEx
|
2024-10-27 00:19:48 +08:00
|
|
|
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="整理" />
|
2025-04-24 20:56:10 +08:00
|
|
|
</ui:StackPanel>
|
2025-02-10 20:53:40 +08:00
|
|
|
</ui:FluentWindowEx>
|