如何在Windows Phone 8中设置背景图像?

我是WP应用程序的新手,不知道如何在app.xaml文件中为Windows Phone 8应用程序中的整个应用程序设置back-ground图像。 直到现在,我已经对它进行了一些controls ,但未能设置背景图像。 我看过一些材料但没有用。 任何帮助将不胜感激 !

您可以添加使用Image作为背景的公共网格样式。并将其放在App.xaml.Resources下。

    

并将其用于页面的根网格。

  //Content goes here  

我在app.xaml.cs.的InitializePhoneApplication方法中使用以下内容。 效果是每个页面都有相同的背景图像,页面导航时没有闪烁/消隐

  RootFrame = new PhoneApplicationFrame { Background = new ImageBrush() { ImageSource = new BitmapImage(new Uri("Assets/Russel_Logo_ep2s.png", UriKind.Relative)), Opacity = 0.3, Stretch = System.Windows.Media.Stretch.None, AlignmentX = AlignmentX.Center, AlignmentY = AlignmentY.Center } };