Files
ShrlAlgoToolkit/ShrlAlgoToolkit.RevitAddins/RvView/VisibilityView.xaml

45 lines
2.4 KiB
Plaintext
Raw Normal View History

2025-08-20 12:10:35 +08:00
<ui:NeoWindow
2025-04-24 20:56:44 +08:00
x:Class="ShrlAlgoToolkit.RevitAddins.RvView.VisibilityView"
2024-09-22 11:05:41 +08:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2025-10-10 11:19:58 +08:00
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2024-09-22 11:05:41 +08:00
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2025-04-24 20:56:44 +08:00
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvView"
2024-09-22 11:05:41 +08:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2025-08-20 12:10:35 +08:00
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
2025-10-10 11:19:58 +08:00
Title="可见性控制"
Width="370"
2026-01-02 16:37:37 +08:00
Height="60"
2025-10-10 11:19:58 +08:00
MinWidth="400"
2026-01-02 16:37:37 +08:00
MinHeight="60"
2025-10-10 11:19:58 +08:00
d:DataContext="{d:DesignInstance local:VisibilityViewModel}"
Icon="{DynamicResource RevitIcon}"
SizeToContent="Width"
mc:Ignorable="d">
2024-09-22 11:05:41 +08:00
<b:Interaction.Triggers>
<b:EventTrigger EventName="Closing">
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
</b:EventTrigger>
</b:Interaction.Triggers>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
2025-04-24 20:56:10 +08:00
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
2024-09-22 11:05:41 +08:00
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
2025-04-24 20:56:10 +08:00
<ui:StackPanel
2024-09-22 11:05:41 +08:00
Margin="5"
Orientation="Horizontal"
Spacing="5">
<ToggleButton Content="墙" IsChecked="{Binding WallChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ToggleButton Content="梁" IsChecked="{Binding BeamChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ToggleButton Content="板" IsChecked="{Binding FloorChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ToggleButton Content="柱" IsChecked="{Binding ColumnChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ToggleButton Content="风" IsChecked="{Binding MechanicalChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ToggleButton Content="水" IsChecked="{Binding PlumbingChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ToggleButton Content="桥架" IsChecked="{Binding CableTrayChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ToggleButton Content="线管" IsChecked="{Binding ConduitChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
2025-04-24 20:56:10 +08:00
</ui:StackPanel>
2025-08-20 12:10:35 +08:00
</ui:NeoWindow>