Files
ShrlAlgoToolkit/Sai.RvKits/RvView/QuickViewSectionView.xaml
2024-09-22 11:05:41 +08:00

40 lines
1.6 KiB
XML

<ex:FluentWindowEx
x:Class="Sai.RvKits.RvView.QuickViewSectionView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
xmlns:local="clr-namespace:Sai.RvKits.RvView"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="快速剖面"
Width="250"
Height="180"
MinHeight="180"
d:DataContext="{d:DesignInstance Type=local:QuickViewSectionViewModel}"
SizeToContent="Height"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/Sai.RvKits;component/WPFUI.xaml" />
</Window.Resources>
<ex:StackPanelEx Margin="5" Spacing="5">
<GroupBox Grid.Row="0" Header="剖面线">
<UniformGrid Rows="1">
<RadioButton
HorizontalAlignment="Center"
Content="平行"
IsChecked="{Binding IsParallel}" />
<RadioButton
x:Name="Perpendicular"
HorizontalAlignment="Center"
Content="正交"
IsChecked="{Binding IsParallel, Converter={StaticResource InvertBooleanConverter}}" />
</UniformGrid>
</GroupBox>
<Button
Grid.Row="1"
HorizontalAlignment="Stretch"
Command="{Binding CreateViewSectionCommand}"
Content="创建" />
</ex:StackPanelEx>
</ex:FluentWindowEx>