Click here to Skip to main content
15,913,773 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Overview: WPF Pin
Pete O'Hanlon22-May-09 0:58
mvePete O'Hanlon22-May-09 0:58 
GeneralRe: Overview: WPF Pin
Allen Anderson25-May-09 17:49
Allen Anderson25-May-09 17:49 
QuestionInteroperability: Form vs. Window Pin
Kunal Chowdhury «IN»21-May-09 23:24
professionalKunal Chowdhury «IN»21-May-09 23:24 
AnswerRe: Interoperability: Form vs. Window Pin
Pete O'Hanlon22-May-09 0:27
mvePete O'Hanlon22-May-09 0:27 
AnswerRe: Interoperability: Form vs. Window Pin
#realJSOP22-May-09 0:30
professional#realJSOP22-May-09 0:30 
AnswerRe: Interoperability: Form vs. Window Pin
ABitSmart22-May-09 3:53
ABitSmart22-May-09 3:53 
GeneralSilverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ21-May-09 11:48
SBJ21-May-09 11:48 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 6:12
Mark Salsbery22-May-09 6:12 
If you have static images to embed in your Silverlight app, you can just add
them to your project and set the Build Action property of the image to "Resource".

So, for example, if you add a folder to your project called Images, and add an
image to that folder called Test1.png, you can access it like this:
<!-- From XAML -->
<Image Source="Images/Test1.png" Stretch="None" />

// From code
BitmapImage bmp = new BitmapImage(new Uri("yourappmodulename;component/Images/Test1.png", UriKind.Relative));


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 6:48
SBJ22-May-09 6:48 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 7:04
Mark Salsbery22-May-09 7:04 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 7:41
SBJ22-May-09 7:41 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 8:07
Mark Salsbery22-May-09 8:07 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 10:32
SBJ22-May-09 10:32 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 10:39
Mark Salsbery22-May-09 10:39 
QuestionM-V-VM implementation question Pin
ml_black21-May-09 9:48
ml_black21-May-09 9:48 
AnswerRe: M-V-VM implementation question Pin
Pete O'Hanlon21-May-09 10:33
mvePete O'Hanlon21-May-09 10:33 
GeneralRe: M-V-VM implementation question Pin
ml_black22-May-09 2:32
ml_black22-May-09 2:32 
GeneralRe: M-V-VM implementation question Pin
Pete O'Hanlon22-May-09 3:15
mvePete O'Hanlon22-May-09 3:15 
GeneralRe: M-V-VM implementation question Pin
ml_black22-May-09 4:14
ml_black22-May-09 4:14 
Questionprogramming html in wpf using c# Pin
ramakrishnamakkena21-May-09 2:40
ramakrishnamakkena21-May-09 2:40 
AnswerRe: programming html in wpf using c# Pin
Pete O'Hanlon21-May-09 4:32
mvePete O'Hanlon21-May-09 4:32 
QuestionListViewItem promblem Pin
mildred-frontfree21-May-09 0:57
mildred-frontfree21-May-09 0:57 
AnswerRe: ListViewItem promblem Pin
ABitSmart21-May-09 5:13
ABitSmart21-May-09 5:13 
GeneralRe: ListViewItem promblem Pin
mildred-frontfree21-May-09 18:14
mildred-frontfree21-May-09 18:14 
GeneralRe: ListViewItem promblem Pin
ABitSmart21-May-09 18:26
ABitSmart21-May-09 18:26 

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.