调整代码
This commit is contained in:
44
ShrlAlgoToolkit.RevitAddins/DrawSheet/VisibilityView.xaml
Normal file
44
ShrlAlgoToolkit.RevitAddins/DrawSheet/VisibilityView.xaml
Normal file
@@ -0,0 +1,44 @@
|
||||
<ui:MelWindow
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.DrawSheet.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:local1="clr-namespace:ShrlAlgoToolkit.RevitAddins.DrawSheet"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
|
||||
Title="可见性控制"
|
||||
Width="370"
|
||||
Height="60"
|
||||
MinWidth="400"
|
||||
MinHeight="60"
|
||||
d:DataContext="{d:DesignInstance local1: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:MelWindow>
|
||||
Reference in New Issue
Block a user