Wpf Browser Application and resources

M

Marek Kolesar

Hi ...

i develop now Wpf Browser Application ... now i have very ease web app ...

i have only 1 page wit h 2 buttons ....
in resources added file languages.xml
resources acces modifier set to public

and now my problem ....

how to load this resource ?

i try a few function .. but everytime functions return null

System.IO.Stream stream =
this.GetType().Assembly.GetManifestResourceStream("MyApp.Languages.xml");
System.IO.Stream stream1 =
this.GetType().Assembly.GetManifestResourceStream("../Languages.xml");
System.IO.Stream stream2 =
Application.ResourceAssembly.GetManifestResourceStream("Languages.xml");

+ everytime return null ... without exception ...

any idea whats wrong ?
 
M

Marek Kolesar

ohh... self answer ..

string s = WpfBrowserApplication1.Properties.Resources.NewString;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top