901130 - Image is not displayed
-
in the following XAML:
the image is displayed in design mode, but is not displayed in runtime, neither in browser nor out of browser. why it may be? P.S. replace the face with colon d!
-
in the following XAML:
the image is displayed in design mode, but is not displayed in runtime, neither in browser nor out of browser. why it may be? P.S. replace the face with colon d!
i found that i didn't add the image to my project. it's just an image which exists somewhere in my HDD. but, the matter is that i don't want to put a static image there. consider a program which is written and doesn't intend to know what is the image. by clicking on the default image a file open dialog must be opened from which user may select the image he/she wants to be shown in the Image control. also consider a case in which the image must be made dynamically. maybe something like a simple MSPaint. user may just draw lines or put points. it's enough that the image not to be static anymore. what can i do in such cases? thx
-
in the following XAML:
the image is displayed in design mode, but is not displayed in runtime, neither in browser nor out of browser. why it may be? P.S. replace the face with colon d!
One of the things to remember when running your application is that it has to respect the permission sets applied, so the fact that you are attempting to read the image from a folder that you will not normally have the permissions to get to is going to cause you a problem. If your application needs to be able to display an image chosen by the user, a simple way to do this is to read the picture in programatically and display that.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility