Files
ShrlAlgoToolkit/ShrlAlgoToolkit.RevitAddins/RvView/VisibilityView.xaml
2026-01-02 16:37:37 +08:00

45 lines
2.4 KiB
XML

<ui:NeoWindow
x:Class="ShrlAlgoToolkit.RevitAddins.RvView.VisibilityView"
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:ShrlAlgoToolkit.RevitAddins.RvView"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
Title="可见性控制"
Width="370"
Height="60"
MinWidth="400"
MinHeight="60"
d:DataContext="{d:DesignInstance local:VisibilityViewModel}"
Icon="{DynamicResource RevitIcon}"
SizeToContent="Width"
mc:Ignorable="d">
<b:Interaction.Triggers>
<b:EventTrigger EventName="Closing">
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
</b:EventTrigger>
</b:Interaction.Triggers>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<ui:StackPanel
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}" />
</ui:StackPanel>
</ui:NeoWindow>