Wpf Browser Application and resources

  • Thread starter Thread starter Marek Kolesar
  • Start date Start date
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 ?
 
ohh... self answer ..

string s = WpfBrowserApplication1.Properties.Resources.NewString;
 
Back
Top