私は新しいプラットフォームに対応しようとしていますが、何らかの理由でアプリケーションを何度も実行した後、その要素が表示されません。それは別の要素を追加したようなもので、何も表示されません。私はすべてを削除しようとしましたが、最初から始めましたが、それは同じことをします。少なくとも1つの要素を表示する代わりに、テーマをDarkに変更しても、アプリケーションは空白のままです。コンパイラにもエラーは表示されません。私のメインページには、次のとおりです。あなたの背景はBlack
であり、あなたのフォントフォアグラウンドでも黒であるため、UWPアプリケーションでメインビューが表示されない
<Page
x:Class="WDRPCIV.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WDRPCIV"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationForegroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<RelativePanel>
<Button Width="40" Height="40" Background="{ThemeResource SystemControlForegroundAccentBrush}" Name="RootHamburger" FontFamily="Segoe MDL2 Assets" Content="" FontSize="20" Click="EvenimentMeniu"/>
<TextBlock x:Name="textBlock" Text="YOLOSWAG" FontSize="16" Margin="50,13,0,0"/>
</RelativePanel>
<SplitView Name="ListaNavigare" Grid.Row="1" DisplayMode="CompactOverlay" OpenPaneLength="200" CompactPaneLength="40" HorizontalAlignment="Left">
<SplitView.Pane>
<ListBox SelectionMode="Single" Name="Iconite" SelectionChanged="SchimbareFereastra">
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="18" Text=""></TextBlock>
<TextBlock Text="Selectare Categorie" FontSize="14" Margin="20,0,0,0"></TextBlock>
</StackPanel>
</ListBoxItem>
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="18" Text=""></TextBlock>
<TextBlock Text="Incepere Chestionar" FontSize="14" Margin="20,0,0,0"></TextBlock>
</StackPanel>
</ListBoxItem>
<ListBoxItem>
<StackPanel Orientation="Horizontal" GotFocus="StackPanel_GotFocus">
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="18" Text=""></TextBlock>
<TextBlock Text="Despre" FontSize="14" Margin="20,0,0,0"></TextBlock>
</StackPanel>
</ListBoxItem>
</ListBox>
</SplitView.Pane>
</SplitView>
</Grid>