2015-11-25 69 views
0

我在我的筆記本電腦上創建了一個簡單的應用程序,分辨率爲1440x900,文本大小爲100%(在設置中設置菜單屏幕)。當我在1920x1080分辨率和125%的平板電腦上運行應用程序時,網格無法正確顯示。 右: right屏幕分辨率顯示不正確grid

錯誤:

wrong

如果我的平板電腦更改字體的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> 

+0

你請分享你的xaml co德? –

+0

我現在加了。 – Andrea485

+0

你試過了哪種平板設備?在我的Windows 10 PC(10.0.10586)中,我剛剛將Grid放置在根網格面板下,並以這兩種分辨率對其進行測試,結果完全相同。 –

回答

0

我解決它通過改變厚度大於0.4:

<Border Grid.Row="0" BorderBrush="#F2F2F2" BorderThickness="0,0.4,0,0.4"> </Border> 
莫非