Click here to Skip to main content
15,891,473 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Interoperability: Form vs. Window Pin
#realJSOP22-May-09 0:30
mve#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 
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 
SBJ wrote:
I added the image files to the Properties folder through Expression Blend.


Interesting....that may be the problem.

For project management, I would highly recommend using Visual Studio.

For packaging images with your app, using VS Solution Explorer, you can

1) Create a folder in the project (or use the project's root folder if
     you want - messier IMO)
2) Right click the folder, choose Add/Existing Item... and add the images.
     By default, the image's build action will be set to Resource - this will embed the
     image(s) in the assembly DLL.

At this point you have options -
1) The default (as mentioned above) packages the image(s) in the assembly DLL.
2) You could change the image build type(s) to "Content" and the image(s) will be placed
     in the app's XAP file, separate from the DLL.
3) You could change the build type to "None", set the Copy to Output setting to copy always
     or copy if newer, and the image(s) will be left on the server -
     accessible using a URL. You would use this option for loading on demand
     instead of having the image(s) download with the XAP file at startup.

This link shows all these options: Different ways for loading images and files in Silverlight 2 applications[^]

That gives you control over how your images are included with the resulting application
package, so you don't have to guess or rely on some implicit packaging of the images
just because you referenced the image in XAML somewhere Smile | :)

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
AnswerRe: ListViewItem promblem Pin
Niladri_Biswas13-Jun-09 3:17
Niladri_Biswas13-Jun-09 3:17 
GeneralRe: ListViewItem promblem Pin
mildred-frontfree16-Jun-09 14:56
mildred-frontfree16-Jun-09 14:56 
GeneralRe: ListViewItem promblem Pin
Niladri_Biswas17-Jun-09 21:13
Niladri_Biswas17-Jun-09 21:13 
QuestionHelp getting values from combobox and comparing them to items in stackpanel Pin
Member 422055221-May-09 0:45
Member 422055221-May-09 0:45 

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.