Click here to Skip to main content
15,911,762 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: drag and drop picture in richtextbox Pin
angels7774-Mar-08 12:20
angels7774-Mar-08 12:20 
GeneralRe: drag and drop picture in richtextbox Pin
teejayem4-Mar-08 16:21
teejayem4-Mar-08 16:21 
GeneralRe: drag and drop picture in richtextbox Pin
angels7776-Mar-08 13:10
angels7776-Mar-08 13:10 
GeneralRe: drag and drop picture in richtextbox Pin
Pete O'Hanlon6-Mar-08 23:00
mvePete O'Hanlon6-Mar-08 23:00 
GeneralWPF Browser Application and Browser Issues Pin
yarns2-Mar-08 23:14
yarns2-Mar-08 23:14 
GeneralBinding an Object to xamDataGrid Pin
Jammer1-Mar-08 23:33
Jammer1-Mar-08 23:33 
GeneralRe: Binding an Object to xamDataGrid Pin
User 2710092-Mar-08 14:39
User 2710092-Mar-08 14:39 
GeneralLoading image at run time Pin
Yoyosch28-Feb-08 4:05
Yoyosch28-Feb-08 4:05 
My problem is very simple: I have one project in my solution. It contains WPF User Control and WPF Window (which displays this control). In User Control I have an Image control:

<Image Margin="56,22,44,128" Name="image1" Stretch="Fill" Source="/WpfApplication20;component/Niebieskie góry.jpg" />

In .cs file I got the following:

public UserControl1()<br />
		{<br />
			InitializeComponent();<br />
<br />
			image1.Source = new BitmapImage(new Uri(@"Zachód slonca.jpg"));		<br />
		}


Both images are included into my project as a RESOURCE. Project builds with no errors. However, it throws exception at run time. In my view the reason is that it can`t find the image to replace the previous one.

Thank you very much for any help
GeneralRe: Loading image at run time Pin
User 27100928-Feb-08 4:17
User 27100928-Feb-08 4:17 
GeneralFOUND NEW ISSUE Pin
Yoyosch3-Mar-08 3:20
Yoyosch3-Mar-08 3:20 
GeneralRe: Loading image at run time Pin
Yoyosch28-Feb-08 4:17
Yoyosch28-Feb-08 4:17 
GeneralPicture of Silverlight 2.0 (beta 1) Controls Pin
Michael Sync26-Feb-08 16:10
Michael Sync26-Feb-08 16:10 
GeneralRe: Picture of Silverlight 2.0 (beta 1) Controls Pin
Michael Sync2-Mar-08 1:36
Michael Sync2-Mar-08 1:36 
QuestionWPG Image only at low resolution? Pin
BugMeNot ACCOUNT26-Feb-08 12:19
BugMeNot ACCOUNT26-Feb-08 12:19 
AnswerRe: WPG Image only at low resolution? Pin
User 27100926-Feb-08 15:22
User 27100926-Feb-08 15:22 
GeneralRe: WPG Image only at low resolution? Pin
BugMeNot ACCOUNT26-Feb-08 23:32
BugMeNot ACCOUNT26-Feb-08 23:32 
GeneralRe: WPG Image only at low resolution? Pin
User 27100927-Feb-08 0:00
User 27100927-Feb-08 0:00 
GeneralRe: WPG Image only at low resolution? Pin
BugMeNot ACCOUNT27-Feb-08 0:40
BugMeNot ACCOUNT27-Feb-08 0:40 
GeneralRe: WPG Image only at low resolution? Pin
User 27100927-Feb-08 0:42
User 27100927-Feb-08 0:42 
GeneralRe: WPG Image only at low resolution? Pin
BugMeNot ACCOUNT27-Feb-08 1:35
BugMeNot ACCOUNT27-Feb-08 1:35 
GeneralRe: WPG Image only at low resolution? Pin
User 27100927-Feb-08 2:13
User 27100927-Feb-08 2:13 
GeneralRe: WPG Image only at low resolution? Pin
BugMeNot ACCOUNT27-Feb-08 4:19
BugMeNot ACCOUNT27-Feb-08 4:19 
GeneralRe: WPG Image only at low resolution? Pin
User 27100927-Feb-08 4:39
User 27100927-Feb-08 4:39 
GeneralRe: WPG Image only at low resolution? Pin
babaa228-Feb-08 23:48
babaa228-Feb-08 23:48 
GeneralRe: WPG Image only at low resolution? (SOLUTION, maybe...) Pin
babaa229-Feb-08 8:39
babaa229-Feb-08 8:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.