私はWindowsPhoneアプリケーションを開発しています。私はWP7アプリ開発の初心者です。私のアプリでは、ユーザーコントロールを使用しており、コードに示されている次のプロセスを通じて背景画像を変更しました。ただし、背景画像は変更されていません。誰かが私を助けることができますか?これが私のコードスニペットです:
<Grid>
<Image Source="\assests\backgroungimages\appBackground2.jpg" Stretch="UniformToFill"/>
<StackPanel x:Name="LayoutRoot" Width="480" Height="306" Background="Black">
<TextBlock x:Name="ApplicationTitle" Text="Sign In" Style="{StaticResource PhoneTextNormalStyle}" Foreground="#CBF7FA" FontSize="30"/>
<toolkit:PhoneTextBox Hint="UserName" Name="txtUsername" Width="auto" HintStyle="{StaticResource HintCustomStyle}"></toolkit:PhoneTextBox>
<toolkit:PhoneTextBox Hint="Password" Name="txtPassword" Width="auto" HintStyle="{StaticResource HintCustomStyle}"></toolkit:PhoneTextBox>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<Button Content="Sign In" Name="btnSignIn" Width="auto" Grid.Column="0" Grid.Row="0">
<Button.Background>
<ImageBrush ImageSource="\assests\backgroungimages\btnImage.jpg" Stretch="UniformToFill"></ImageBrush>
</Button.Background>
</Button>
<Button Content="Cancel" Name="btnCancel" Width="auto" Grid.Column="1" Grid.Row="0">
<Button.Background>
<ImageBrush ImageSource="\assests\backgroungimages\btnImage.jpg" Stretch="UniformToFill"></ImageBrush>
</Button.Background>
</Button>
</Grid>
</StackPanel>
</Grid>