locked
BitmapImage reference missing

    Question

  • Hi

    I try

    Frame rootFrame = Window.Current.Content as Frame;

                rootFrame.Background = new ImageBrush
                {
                    Stretch = Windows.UI.Xaml.Media.Stretch.UniformToFill,
                    ImageSource = //new ImageSource("Assets/folhasCinco2.gif");
                        new BitmapImage { UriSource = new Uri("ms-appx:///Assets/Background.jpg") }
                };

    But BitmapImage is not recognised.

    I'm creating a Windows store app for windows 8 using visual studio express 2012.

    How can I solve this problem?

    Friday, December 5, 2014 11:23 AM

Answers