Change the window size to responsive

This commit is contained in:
DB p 2021-11-06 21:20:39 +09:00 committed by Kevin Zhang
parent 5be5d816d0
commit e648ef0fdd

View file

@ -7,14 +7,13 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.modernwpf.com/2019" xmlns:ui="http://schemas.modernwpf.com/2019"
Title="{DynamicResource fileManagerWindow}" Title="{DynamicResource fileManagerWindow}"
Width="600"
Height="550"
Background="#f3f3f3" Background="#f3f3f3"
DataContext="{Binding RelativeSource={RelativeSource Self}}" DataContext="{Binding RelativeSource={RelativeSource Self}}"
ResizeMode="NoResize" ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
mc:Ignorable="d"> mc:Ignorable="d">
<Grid> <Grid Width="600">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition /> <RowDefinition />
<RowDefinition Height="80" /> <RowDefinition Height="80" />
@ -152,7 +151,7 @@
<TextBlock <TextBlock
Grid.Row="3" Grid.Row="3"
Grid.Column="0" Grid.Column="0"
Margin="14,10,0,0" Margin="14,10,0,20"
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Center" VerticalAlignment="Center"
FontSize="14" FontSize="14"
@ -161,7 +160,7 @@
Grid.Row="3" Grid.Row="3"
Grid.Column="1" Grid.Column="1"
Width="Auto" Width="Auto"
Margin="10,10,15,0" Margin="10,10,15,20"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Center" VerticalAlignment="Center"
IsEnabled="{Binding Editable}" IsEnabled="{Binding Editable}"