none
Visual Studio vs Expression Blend Emulator Issue RRS feed

  • General discussion

  • I've been playing around with the MediaLibrary class and after running this sample code I noticed a strange problem.

    MediaLibrary media = new MediaLibrary();
    PictureCollection pictures = media.Pictures;

    BitmapImage bitmap = new BitmapImage();
    bitmap.SetSource(pictures[0].GetImage());

    SelectedImage.Source = bitmap;


    When I build and run using the emulator in Visual Studio, the code works as it should. However, when I do the same in Expression Blend the application shuts down and I'm returned to main menu screen on the emulator. What could be causing this?
    Monday, November 8, 2010 1:20 AM