优化更新代码,添加界面功能并整合
This commit is contained in:
59
ShrlAlgo.RvKits/RvMEP/MoveMEPCurveView.xaml
Normal file
59
ShrlAlgo.RvKits/RvMEP/MoveMEPCurveView.xaml
Normal file
@@ -0,0 +1,59 @@
|
||||
<ui:FluentWindowEx
|
||||
x:Class="ShrlAlgo.RvKits.RvMEP.MoveMEPCurveView"
|
||||
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"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
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" />
|
||||
</Window.Resources>
|
||||
<ui:StackPanelEx Margin="5" Spacing="5">
|
||||
<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
|
||||
Prefix="距离/间距:"
|
||||
Suffix="mm"
|
||||
Text="{Binding Distance}"
|
||||
ToolTip="上下移动的距离(需要区分正负)或与参考的间距" />
|
||||
<ui:StackPanelEx Orientation="Horizontal" Spacing="5">
|
||||
<Button
|
||||
HorizontalAlignment="Stretch"
|
||||
ui:StackPanelEx.Fill="Fill"
|
||||
Command="{Binding SelectCommand}"
|
||||
Content="选择" />
|
||||
<Button
|
||||
HorizontalAlignment="Stretch"
|
||||
ui:StackPanelEx.Fill="Fill"
|
||||
Command="{Binding MoveCommand}"
|
||||
Content="移动" />
|
||||
</ui:StackPanelEx>
|
||||
</ui:StackPanelEx>
|
||||
</ui:FluentWindowEx>
|
||||
Reference in New Issue
Block a user