44 lines
2.4 KiB
XML
44 lines
2.4 KiB
XML
<ui:FluentWindowEx
|
|
Height="100"
|
|
MinHeight="100"
|
|
MinWidth="400"
|
|
SizeToContent="Width"
|
|
Title="可见性控制"
|
|
Width="370"
|
|
d:DataContext="{d:DesignInstance local:VisibilityViewModel}"
|
|
mc:Ignorable="d"
|
|
x:Class="ShrlAlgoToolkit.RevitAddins.RvView.VisibilityView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
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/WPFluent"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<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:FluentWindowEx>
|