I got error with this below:
string imageCompXaml = serialized image (bitmap)
Image imgObj = XamlReader.Parse(imageCompXaml) as Image
err: Property 'UriSource' or property 'StreamSource' must be set
i can workaround the problem by
imgObj = new Image();
imgObj.Source = BitmapImageObject;
problem is by doing i missed out lot of other details.
I have a string, this is the serialized of the Image object, which is BitmapImage
I missed out the Image.prop details, like the width/height.
the image size is not same as the BitmapImage object, its a scaled/sized-down bitmap.
so using the 2nd Source workaround, i can't get back the actual image sizing (b4 serialize)
is there a way i can tackle at the XamlReader.Load/Parse() to resolve the err
or how to get back the image prop/details with my workaround?
View Complete Post