我剛開始學習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" 屏幕上定義該佈局中,所以我應該在最小的屏幕上定義佈局,或者我應該怎麼做呢?非常感謝。