Files
Shrlalgo.RvKits/ShrlAlgoToolkit.RevitAddins/RvView/QuickViewSectionView.xaml
2025-04-24 20:56:44 +08:00

47 lines
1.9 KiB
XML

<ui:FluentWindowEx
Height="180"
SizeToContent="Height"
Title="快速剖面"
Width="250"
d:DataContext="{d:DesignInstance Type=local:QuickViewSectionViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.RvView.QuickViewSectionView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
</Window.Resources>
<ui:StackPanel Margin="5" Spacing="5">
<GroupBox Header="剖面线">
<UniformGrid Rows="1">
<RadioButton
Content="平行"
HorizontalAlignment="Center"
IsChecked="{Binding IsParallel}" />
<RadioButton
Content="正交"
HorizontalAlignment="Center"
IsChecked="{Binding IsParallel, Converter={StaticResource InvertBooleanConverter}}"
x:Name="Perpendicular" />
</UniformGrid>
</GroupBox>
<UniformGrid Rows="1">
<Button
Command="{Binding CreateViewSectionCommand}"
Content="创建"
HorizontalAlignment="Stretch"
Margin="5" />
<Button
Command="{Binding DeleteViewSectionCommand}"
Content="删除"
HorizontalAlignment="Stretch"
Margin="5"
ToolTip="删除全部在当前窗口打开时(本次)创建的快速剖面" />
</UniformGrid>
</ui:StackPanel>
</ui:FluentWindowEx>