整理代码

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,17 +1,18 @@
<ui:NeoWindow
Height="180"
SizeToContent="Height"
Title="快速剖面"
Width="250"
d:DataContext="{d:DesignInstance Type=local:QuickViewSectionViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.RvView.QuickViewSectionView"
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.RvView"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
Title="快速剖面"
Width="300"
Height="180"
d:DataContext="{d:DesignInstance Type=local:QuickViewSectionViewModel}"
Icon="{DynamicResource RevitIcon}"
SizeToContent="Height"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
</Window.Resources>
@@ -19,27 +20,27 @@
<GroupBox Header="剖面线">
<UniformGrid Rows="1">
<RadioButton
Content="平行"
HorizontalAlignment="Center"
Content="平行"
IsChecked="{Binding IsParallel}" />
<RadioButton
Content="正交"
x:Name="Perpendicular"
HorizontalAlignment="Center"
IsChecked="{Binding IsParallel, Converter={StaticResource InvertBooleanConverter}}"
x:Name="Perpendicular" />
Content="正交"
IsChecked="{Binding IsParallel, Converter={StaticResource InvertBooleanConverter}}" />
</UniformGrid>
</GroupBox>
<UniformGrid Rows="1">
<Button
Command="{Binding CreateViewSectionCommand}"
Content="创建"
Margin="5"
HorizontalAlignment="Stretch"
Margin="5" />
Command="{Binding CreateViewSectionCommand}"
Content="创建" />
<Button
Margin="5"
HorizontalAlignment="Stretch"
Command="{Binding DeleteViewSectionCommand}"
Content="删除"
HorizontalAlignment="Stretch"
Margin="5"
ToolTip="删除全部在当前窗口打开时(本次)创建的快速剖面" />
</UniformGrid>
</ui:StackPanel>