Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. 901130 - Image is not displayed

901130 - Image is not displayed

Scheduled Pinned Locked Moved WPF
wpfdesignquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ilostmyid2
    wrote on last edited by
    #1

    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 P 2 Replies Last reply
    0
    • I ilostmyid2

      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 Offline
      I Offline
      ilostmyid2
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • I ilostmyid2

        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!

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups