0
我在我的筆記本電腦上創建了一個簡單的應用程序,分辨率爲1440x900,文本大小爲100%(在設置中設置菜單屏幕)。當我在1920x1080分辨率和125%的平板電腦上運行應用程序時,網格無法正確顯示。 右: 屏幕分辨率顯示不正確grid
錯誤:
如果我的平板電腦更改字體的100%或175%的尺寸,應用,顯示正確的網格。
謝謝
編輯: 這是代碼XAML:
<Grid x:Name="Grid">
<Grid.RowDefinitions>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="#F2F2F2" BorderThickness="0,0.1,0,0.1">
<Line Stroke="#E9E9E9" X1="0" X2="400" Y1="30" Y2="30" StrokeThickness="1" StrokeDashArray="6" StrokeDashCap="Flat" />
</Border>
<Border Grid.Row="1" BorderBrush="#F2F2F2" BorderThickness="0,0.1,0,0.1">
<Line Stroke="#E9E9E9" X1="0" X2="400" Y1="30" Y2="30" StrokeThickness="1" StrokeDashArray="6" StrokeDashCap="Flat" />
</Border>
<Border Grid.Row="2" BorderBrush="#F2F2F2" BorderThickness="0,0.1,0,0.1">
<Line Stroke="#E9E9E9" X1="0" X2="400" Y1="30" Y2="30" StrokeThickness="1" StrokeDashArray="6" StrokeDashCap="Flat" />
</Border>
<Border Grid.Row="3" BorderBrush="#F2F2F2" BorderThickness="0,0.1,0,0.1">
<Line Stroke="#E9E9E9" X1="0" X2="400" Y1="30" Y2="30" StrokeThickness="1" StrokeDashArray="6" StrokeDashCap="Flat" />
</Border>
<Border Grid.Row="4" BorderBrush="#F2F2F2" BorderThickness="0,0.1,0,0.1">
<Line Stroke="#E9E9E9" X1="0" X2="400" Y1="30" Y2="30" StrokeThickness="1" StrokeDashArray="6" StrokeDashCap="Flat" />
</Border>
<Border Grid.Row="5" BorderBrush="#F2F2F2" BorderThickness="0,0.1,0,0.1">
<Line Stroke="#E9E9E9" X1="0" X2="400" Y1="30" Y2="30" StrokeThickness="1" StrokeDashArray="6" StrokeDashCap="Flat" />
</Border>
你請分享你的xaml co德? –
我現在加了。 – Andrea485
你試過了哪種平板設備?在我的Windows 10 PC(10.0.10586)中,我剛剛將Grid放置在根網格面板下,並以這兩種分辨率對其進行測試,結果完全相同。 –