调整代码
This commit is contained in:
45
ShrlAlgoToolkit.RevitAddins/Mep/ArrangeMEPCurveView.xaml
Normal file
45
ShrlAlgoToolkit.RevitAddins/Mep/ArrangeMEPCurveView.xaml
Normal file
@@ -0,0 +1,45 @@
|
||||
<ui:MelWindow
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.Mep.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:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.Mep"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
|
||||
Title="整理管线"
|
||||
Width="270"
|
||||
MinHeight="180"
|
||||
d:DataContext="{d:DesignInstance Type=local:ArrangeMEPCurveViewModel}"
|
||||
Icon="{DynamicResource RevitIcon}"
|
||||
SizeToContent="Height"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
<ui:StackPanel Margin="5" Spacing="5">
|
||||
<GroupBox Header="参考方向">
|
||||
<UniformGrid Rows="1">
|
||||
<RadioButton Content="水平方向" IsChecked="{Binding IsHorizon}" />
|
||||
<RadioButton Content="垂直方向" IsChecked="{Binding IsHorizon, Converter={StaticResource InvertBooleanConverter}}" />
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
<TextBox
|
||||
ui:InputAssist.Prefix="间距:"
|
||||
ui:InputAssist.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:StackPanel>
|
||||
</ui:MelWindow>
|
||||
Reference in New Issue
Block a user