2016-08-31 2 views
0

Kürzlich versuche ich einige Windows 10 UWP App Entwicklungen zu lernen. Und nun traf ich eine seltsame Frage, wo sie ein weißes Band in der Tiefe meines app ist, siehe hier:UWP/XAML - Seltsames weißes "Band" in meiner UWP App?

Screenshot #1

Wenn ich die App-Fenster ziehen und vergrößern, dann wird es auf ein anderes weißes Band sein siehe oben, hier:

Screenshot #2

hier ist meine XAML für die Benutzeroberfläche:

<Page 
x:Class="ApodidaeCore.ClockMainUI" 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:local="using:ApodidaeCore" 
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
mc:Ignorable="d"> 

<Grid RequestedTheme="Dark" Margin="0,0,0,38" Height="600" Background="Black"> 
    <Grid.RowDefinitions> 
     <RowDefinition Height="439*"/> 
     <RowDefinition Height="161*"/> 
    </Grid.RowDefinitions> 
    <Grid.ColumnDefinitions> 
     <ColumnDefinition Width="205*"/> 
     <ColumnDefinition Width="819*"/> 
    </Grid.ColumnDefinitions> 

    <TextBlock x:Name="hourTextBlock" HorizontalAlignment="Left" Height="191" TextWrapping="Wrap" Text="00" VerticalAlignment="Top" Width="205" Foreground="White" FontSize="170" Margin="15.2,98,0,0" Grid.Column="1" /> 
    <TextBlock x:Name="clockSymbolTextBlock" HorizontalAlignment="Left" Height="141" TextWrapping="Wrap" Text=":" VerticalAlignment="Top" Width="38" Foreground="White" FontSize="105" FontWeight="Bold" Margin="244.2,130,0,0" Grid.Column="1"/> 
    <TextBlock x:Name="minuteTextBlock" HorizontalAlignment="Left" Height="197" TextWrapping="Wrap" Text="00" VerticalAlignment="Top" Width="218" Foreground="White" FontSize="170" Margin="308.2,98,0,0" Grid.Column="1"/> 
    <TextBlock x:Name="weatherInfoTextBlock" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="White" FontSize="25" Margin="188.2,331,0,0" Text="Unknown" Width="314" Height="33" Grid.Column="1"/> 
    <TextBlock x:Name="notificationTextBlock" HorizontalAlignment="Left" TextWrapping="Wrap" Text="No new notification" VerticalAlignment="Top" Foreground="White" FontSize="25" Margin="188.2,369,0,0" Height="30" Width="314" Grid.Column="1"/> 
    <Image x:Name="weatherInfoIconImage" HorizontalAlignment="Left" Height="100" Margin="67.2,321,0,0" VerticalAlignment="Top" Width="100" Grid.Column="1"/> 

</Grid> 

Was soll ich tun, um dies zu beheben? Irgendwelche Vorschläge? Danke im Voraus!

Jackson.

Antwort

1

Got fixed, dumme mich!

Ich habe die Rasterhöhe und den Rand falsch eingestellt.

Entfernen Sie diese beiden Variablen, um das Problem zu beheben.

ändern diese:

<Grid RequestedTheme="Dark" Margin="0,0,0,38" Height="600" Background="Black"> 

dazu:

<Grid RequestedTheme="Dark" Background="Black"> 
+0

froh, dass du zurück kam zu erklären –