整理代码

This commit is contained in:
ShrlAlgo
2025-10-10 11:19:58 +08:00
parent 4722a4c881
commit 9d40762f03
111 changed files with 3238 additions and 3112 deletions

View File

@@ -1,19 +1,20 @@
<ui:NeoWindow
Height="350"
MinHeight="350"
SizeToContent="Height"
Title="任意连接"
Width="270"
d:DataContext="{d:DesignInstance Type=local:AnyConnectViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.RvMEP.AnyConnectView"
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.RvMEP"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
Title="任意连接"
Width="270"
Height="350"
MinHeight="350"
d:DataContext="{d:DesignInstance Type=local:AnyConnectViewModel}"
Icon="{DynamicResource RevitIcon}"
SizeToContent="Height"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
</Window.Resources>
@@ -87,11 +88,11 @@
</Binding>
</RadioButton.IsChecked>
</RadioButton>
<RadioButton Content="自定义" x:Name="LbCustom" />
<RadioButton x:Name="LbCustom" Content="自定义" />
<TextBox
VerticalAlignment="Center"
IsEnabled="{Binding IsChecked, ElementName=LbCustom}"
Text="{Binding Angle, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center" />
Text="{Binding Angle, UpdateSourceTrigger=PropertyChanged}" />
</UniformGrid>
</GroupBox>
<GroupBox Header="选择方式">
@@ -107,9 +108,9 @@
</UniformGrid>
</GroupBox>
<Button
Command="{Binding ConnectCommand}"
Content="连接管线"
HorizontalAlignment="Stretch"
ui:ButtonAssist.Icon="{ui:Icon SymbolValue=PlugConnect}" />
ui:ButtonAssist.Icon="{ui:Icon SymbolValue=PlugConnect}"
Command="{Binding ConnectCommand}"
Content="连接管线" />
</ui:StackPanel>
</ui:NeoWindow>