想做个界面的背景图片,在其中的一个界面上可以显示,但是新建的界面却没能显示图片,不知道什么原因,下面为没出图片界面的代码。大佬帮忙看下,谢谢。
x:Class="EBoatApp.Views.ActivatePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:EBoatApp.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<Grid.Background>
<ImageBrush Stretch="Fill" ImageSource="Skin/Icon/背景.jpg"></ImageBrush>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="15*"/>
<RowDefinition Height="85*"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0" Background="lightBlue"></Grid>
<TextBlock Text="BOSON 干式荧光免疫分析仪" Grid.Row="0" HorizontalAlignment="Left" FontSize="36" Foreground="Blue" Margin="20,0,0,0" FontStyle="Italic"
IsColorFontEnabled="True" >
</TextBlock>
<Border Grid.Row="1">
<Border.Background >
<ImageBrush Stretch="UniformToFill" AlignmentX="Center" ImageSource="Skin/Icon/背景.jpg"></ImageBrush>
</Border.Background>
<Image HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" />
</Border>
<!--<Grid Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
<Grid.Background>
<ImageBrush Stretch="UniformToFill" AlignmentX="Center" ImageSource="Skin/Icon/背景.jpg" />
</Grid.Background>
</Grid>-->
</Grid>