Files
ShrlAlgoToolkit/ShrlAlgo.RvKits/RvView/VisibilityView.xaml

45 lines
2.3 KiB
Plaintext
Raw Normal View History

<ui:FluentWindowEx
x:Class="ShrlAlgo.RvKits.RvView.VisibilityView"
2024-09-22 11:05:41 +08:00
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:ShrlAlgo.RvKits.RvView"
2024-09-22 11:05:41 +08:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
2024-09-22 11:05:41 +08:00
Title="可见性控制"
Width="370"
Height="100"
MinWidth="400"
MinHeight="100"
d:DataContext="{d:DesignInstance local:VisibilityViewModel}"
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:,,,/ShrlAlgo.RvKits;component/WPFUI.xaml" />
2024-09-22 11:05:41 +08:00
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<ui:StackPanelEx
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}" />
</ui:StackPanelEx>
</ui:FluentWindowEx>