修复窗口大小问题

This commit is contained in:
ShrlAlgo
2025-09-19 09:18:09 +08:00
parent d71019ac38
commit 3fc465959b
34 changed files with 592 additions and 238 deletions

View File

@@ -11,10 +11,8 @@
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" />
@@ -22,7 +20,10 @@
<StackPanel Margin="5">
<GroupBox Grid.Row="0" Header="剖面线">
<UniformGrid Rows="1">
<RadioButton HorizontalAlignment="Center" Content="平行" IsChecked="{Binding IsParallel}" />
<RadioButton
HorizontalAlignment="Center"
Content="平行"
IsChecked="{Binding IsParallel}" />
<RadioButton
x:Name="Perpendicular"
HorizontalAlignment="Center"
@@ -31,7 +32,10 @@
</UniformGrid>
</GroupBox>
<UniformGrid Rows="1">
<Button HorizontalAlignment="Stretch" Command="{Binding CreateViewSectionCommand}" Content="创建" />
<Button
HorizontalAlignment="Stretch"
Command="{Binding CreateViewSectionCommand}"
Content="创建" />
<Button
Margin="5"
HorizontalAlignment="Stretch"