Files
Shrlalgo.RvKits/ShrlAlgo.RvKits/RvMEP/MoveMEPCurveView.xaml

60 lines
2.5 KiB
Plaintext
Raw Normal View History

<ui:FluentWindowEx
x:Class="ShrlAlgo.RvKits.RvMEP.MoveMEPCurveView"
2024-09-22 11:05:41 +08:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ShrlAlgo.RvKits.RvMEP"
2024-09-22 11:05:41 +08:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
2024-09-22 11:05:41 +08:00
Title="移动管线"
Width="250"
Height="310"
MinWidth="250"
MinHeight="310"
d:DataContext="{d:DesignInstance Type=local:MoveMEPCurveViewModel}"
mc:Ignorable="d">
<b:Interaction.Triggers>
<b:EventTrigger EventName="Closing">
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
</b:EventTrigger>
</b:Interaction.Triggers>
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgo.RvKits;component/WPFUI.xaml" />
2024-09-22 11:05:41 +08:00
</Window.Resources>
<ui:StackPanelEx 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>
<ui:TextBoxEx
2024-09-22 11:05:41 +08:00
Prefix="距离/间距:"
Suffix="mm"
Text="{Binding Distance}"
ToolTip="上下移动的距离(需要区分正负)或与参考的间距" />
<ui:StackPanelEx Orientation="Horizontal" Spacing="5">
2024-09-22 11:05:41 +08:00
<Button
HorizontalAlignment="Stretch"
ui:StackPanelEx.Fill="Fill"
2024-09-22 11:05:41 +08:00
Command="{Binding SelectCommand}"
Content="选择" />
<Button
HorizontalAlignment="Stretch"
ui:StackPanelEx.Fill="Fill"
2024-09-22 11:05:41 +08:00
Command="{Binding MoveCommand}"
Content="移动" />
</ui:StackPanelEx>
</ui:StackPanelEx>
</ui:FluentWindowEx>