我刚开始学习UWP编程。我想写一个类似于Windows 10中的人的应用程序。我支持多个屏幕有问题。UWP - 如何正确支持多种屏幕分辨率
我有布局是这样的:
<ScrollViewer Background="Black" >
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="200"/>
<RowDefinition Height="40"/>
<RowDefinition Height="60"/>
<RowDefinition Height="40"/>
<RowDefinition Height="60"/>
<RowDefinition Height="100"/>
<RowDefinition Height="100"/>
<RowDefinition Height="100"/>
</Grid.RowDefinitions>
<TextBlock
Text="CONTACT"
Margin="10, 10, 10, 10"
FontSize="25"
Foreground="White"/>
<Ellipse Grid.Row="1"
Margin="10, 20, 250, 10" >
<Ellipse.Fill>
<ImageBrush ImageSource="Assets/64.png" />
</Ellipse.Fill>
</Ellipse>
<TextBlock
Grid.Row="2"
Text="Name"
FontSize="20"
Margin="10, 0, 0, 0"
VerticalAlignment="Bottom"
Foreground="White"/>
<Grid
Grid.Row="3">
<Grid.Background>
<ImageBrush Stretch="Fill"/>
</Grid.Background>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="350" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBox
Grid.Column="0"
Margin="10, 10, 10, 10"/>
<AppBarButton
Grid.Column="1"
Foreground="White"
Icon="Edit"
HorizontalAlignment="Left"
VerticalAlignment="Center"/>
</Grid>
</Grid>
</ScrollViewer>
I 6" 屏幕上定义该布局中,所以我应该在最小的屏幕上定义布局,或者我应该怎么做呢?非常感谢。