调整代码

This commit is contained in:
GG Z
2026-02-22 20:03:42 +08:00
parent 2ad3d0fde0
commit 7e2d5be3cd
258 changed files with 2916 additions and 5013 deletions

View File

@@ -0,0 +1,78 @@
<Page
x:Class="ShrlAlgoToolkit.RevitAddins.DrawSheet.ElementsControlDock"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
Background="{DynamicResource BackgroundLayoutBrush}"
mc:Ignorable="d">
<Page.Resources>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
</Page.Resources>
<Grid>
<ui:StackPanel
Margin="5"
HorizontalAlignment="Center"
Spacing="5">
<Button
x:Name="HideElements"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=VisibilityOff}"
Click="Btn_Click"
Content="隐藏元素" />
<Button
x:Name="HideElementsAll"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=HideSource}"
Click="Btn_Click"
Content="隐藏所有"
ToolTip="在所有视图中隐藏该元素" />
<!--<Button
x:Name="HideCategories"
Height="30"
Click="Btn_Click"
Content="&#xEDE6;隐藏类别"
FontFamily="{StaticResource BoxIcons}"
FontSize="18" />-->
<Button
x:Name="HideCategories"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=Category}"
Click="Btn_Click"
Content="隐藏类别" />
<Button
x:Name="PinElements"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=Lock}"
Click="Btn_Click"
Content="锁定元素" />
<Button
x:Name="PinCategories"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=Lock}"
Click="Btn_Click"
Content="锁定类别" />
<Button
x:Name="UnpinCategories"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=LockOpen}"
Click="Btn_Click"
Content="解锁类别" />
<Button
x:Name="UnpinAllElements"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=LockOpenRight}"
Click="Btn_Click"
Content="解锁全部" />
<Button
x:Name="IsolateElements"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=Search}"
Click="Btn_Click"
Content="隔离元素" />
<Button
x:Name="IsolateCategories"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=CategorySearch}"
Click="Btn_Click"
Content="隔离类别" />
<Button
x:Name="RevealHiddenElements"
ui:ControlAssist.Icon="{ui:Icon SymbolValue=Visibility}"
Click="Btn_Click"
Content="显示隐藏" />
</ui:StackPanel>
</Grid>
</Page>