WriteableBitmap wb = Image1.Source as WriteableBitmap;
if (wb == null)
BitmapSource bs = Image1.Source as BitmapSource;
wb = new WriteableBitmap(bs); //erroneous line
The above snippet throws the error 'Windows.UI.Xaml.Media.Imaging.WriteableBitmap' does not contain a constructor that takes 1 arguments
Do we have a constructor which takes one argument?
P.S. : This code doesn't show an error when compiled under visual studio 11 beta.