2026-01-02 17:30:41 +08:00
|
|
|
|
<ui:MelWindow
|
2025-04-24 20:56:44 +08:00
|
|
|
|
x:Class="ShrlAlgoToolkit.RevitAddins.RvMEP.MoveMEPCurveView"
|
2024-09-22 11:05:41 +08:00
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2025-10-10 11:19:58 +08:00
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-09-22 11:05:41 +08:00
|
|
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvMEP"
|
2024-09-22 11:05:41 +08:00
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2026-01-02 17:30:41 +08:00
|
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
|
2025-10-10 11:19:58 +08:00
|
|
|
|
Title="移动管线"
|
|
|
|
|
|
Width="300"
|
|
|
|
|
|
Height="280"
|
|
|
|
|
|
d:DataContext="{d:DesignInstance Type=local:MoveMEPCurveViewModel}"
|
|
|
|
|
|
Icon="{DynamicResource RevitIcon}"
|
|
|
|
|
|
SizeToContent="Height"
|
|
|
|
|
|
mc:Ignorable="d">
|
2024-09-22 11:05:41 +08:00
|
|
|
|
<b:Interaction.Triggers>
|
|
|
|
|
|
<b:EventTrigger EventName="Closing">
|
|
|
|
|
|
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
|
|
|
|
|
|
</b:EventTrigger>
|
|
|
|
|
|
</b:Interaction.Triggers>
|
|
|
|
|
|
<Window.Resources>
|
2025-04-24 20:56:10 +08:00
|
|
|
|
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
2024-09-22 11:05:41 +08:00
|
|
|
|
</Window.Resources>
|
2025-04-24 20:56:10 +08:00
|
|
|
|
<ui:StackPanel Margin="5" Spacing="5">
|
2024-09-22 11:05:41 +08:00
|
|
|
|
<GroupBox Header="移动管线方式">
|
|
|
|
|
|
<UniformGrid Rows="1">
|
|
|
|
|
|
<RadioButton
|
|
|
|
|
|
Content="单独"
|
|
|
|
|
|
IsChecked="{Binding IsSingle}"
|
|
|
|
|
|
ToolTip="仅移动当前选择管线(与Revit默认修改逻辑一致)" />
|
|
|
|
|
|
<RadioButton Content="整体" ToolTip="把与选择管线的所有连接管线整体移动" />
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
<GroupBox Header="移动方式">
|
|
|
|
|
|
<UniformGrid Rows="1">
|
|
|
|
|
|
<RadioButton Content="距离" IsChecked="{Binding ByDistance}" />
|
|
|
|
|
|
<RadioButton Content="参考" />
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
|
</GroupBox>
|
2025-08-20 12:10:35 +08:00
|
|
|
|
<TextBox
|
|
|
|
|
|
ui:InputAssist.Prefix="距离/间距:"
|
|
|
|
|
|
ui:InputAssist.Suffix="mm"
|
2024-09-22 11:05:41 +08:00
|
|
|
|
Text="{Binding Distance}"
|
|
|
|
|
|
ToolTip="上下移动的距离(需要区分正负)或与参考的间距" />
|
2025-04-24 20:56:10 +08:00
|
|
|
|
<ui:StackPanel Orientation="Horizontal" Spacing="5">
|
2024-09-22 11:05:41 +08:00
|
|
|
|
<Button
|
|
|
|
|
|
HorizontalAlignment="Stretch"
|
2025-10-10 11:19:58 +08:00
|
|
|
|
ui:StackPanel.Fill="Fill"
|
|
|
|
|
|
Command="{Binding SelectCommand}"
|
|
|
|
|
|
Content="选择" />
|
2025-04-24 20:56:44 +08:00
|
|
|
|
<Button
|
|
|
|
|
|
HorizontalAlignment="Stretch"
|
2025-10-10 11:19:58 +08:00
|
|
|
|
ui:StackPanel.Fill="Fill"
|
|
|
|
|
|
Command="{Binding MoveCommand}"
|
|
|
|
|
|
Content="移动" />
|
2025-04-24 20:56:10 +08:00
|
|
|
|
</ui:StackPanel>
|
|
|
|
|
|
</ui:StackPanel>
|
2026-01-02 17:30:41 +08:00
|
|
|
|
</ui:MelWindow>
|