locked
How to convert BitmapImage to Image

    Question

  • Hi I am new to windows development metro App

    I am confused how to convert BitmapImage to Image (UI element) so that I can display that is main screen (Some where in a Grid using Image )  . 


    Thanks in Advance 
    Tuesday, July 15, 2014 8:02 PM

Answers

  • You don't convert them. They are two parts that work together.

    The Image control displays the image. The BitmapImage contains the image data.

    You tie them together by setting the Image's Source to the BitmapImage:

    myImage.Source = myBitmapImage;

    --Rob

    Tuesday, July 15, 2014 9:54 PM
    Owner