Jump to content



Photo

Image Problem

Answered Go to the full post c# .net windows phone 8

  • Please log in to reply
2 replies to this topic

#1 +LimeMaster

LimeMaster

    LippyZillaD Council ( ͡° ͜ʖ ͡°)

  • Tech Issues Solved: 4
  • Joined: 28-August 10
  • Location: On a laptop
  • OS: Windows 8.1 Pro RTM with Media Center x64
  • Phone: Nokia Lumia 920

Posted 23 August 2013 - 12:39

How do I make an image from Resources display on Windows Phone? The image displays on the designer but not the phone itself. :/

 

Here is the code related to the image:

<Image Name="pictureBox1" Visibility="Visible" HorizontalAlignment="Left" Height="178" Margin="112,68,0,0" Grid.Row="1" VerticalAlignment="Top" Width="249" Source="Resources\Mr.fortune.png"/>


Best Answer Kalint , 23 August 2013 - 21:20

I believe paths are '/' and then in your code you have to tell it to use a relative uri.

Go to the full post



#2 Kalint

Kalint

    Neowinian Senior

  • Tech Issues Solved: 2
  • Joined: 16-January 07

Posted 23 August 2013 - 21:20   Best Answer

I believe paths are '/' and then in your code you have to tell it to use a relative uri.



#3 OP +LimeMaster

LimeMaster

    LippyZillaD Council ( ͡° ͜ʖ ͡°)

  • Tech Issues Solved: 4
  • Joined: 28-August 10
  • Location: On a laptop
  • OS: Windows 8.1 Pro RTM with Media Center x64
  • Phone: Nokia Lumia 920

Posted 24 August 2013 - 12:01

Thanks, Kalint :)