44 lines
2.0 KiB
XML
44 lines
2.0 KiB
XML
<controls:MaterialWindow
|
|
x:Class="Szmedi.RvKits.MEPTools.QuickViewSectionView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:Szmedi.RvKits.Controls"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
|
|
xmlns:local="clr-namespace:Szmedi.RvKits.MEPTools"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
Title="快速剖面"
|
|
Width="250"
|
|
Height="180"
|
|
MinHeight="180"
|
|
d:DataContext="{d:DesignInstance Type=local:QuickViewSectionViewModel}"
|
|
SizeToContent="Height"
|
|
|
|
mc:Ignorable="d">
|
|
<controls:MaterialWindow.Resources>
|
|
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
|
|
</controls:MaterialWindow.Resources>
|
|
<StackPanel Margin="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={x:Static md:InvertBooleanConverter.Instance}}" />
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
<UniformGrid Rows="1">
|
|
<Button HorizontalAlignment="Stretch" Command="{Binding CreateViewSectionCommand}" Content="创建" />
|
|
<Button
|
|
Margin="5"
|
|
HorizontalAlignment="Stretch"
|
|
Command="{Binding DeleteViewSectionCommand}"
|
|
Content="删除"
|
|
ToolTip="删除全部在当前窗口打开时(本次)创建的快速剖面" />
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</controls:MaterialWindow>
|