System.Windows.Application.GetResourceStream returns null

Posted by Tobias Walter on Stack Overflow See other posts from Stack Overflow or by Tobias Walter
Published on 2010-01-26T19:29:58Z Indexed on 2010/05/22 14:40 UTC
Read the original article Hit count: 1140

Filed under:
|
|

If I debug a WPF-application with Catalog.xaml as Content, I can't get the resource stream of it - GetResourceStream returns null:

var uri = new Uri("/Assembly;component/Catalog.xaml", UriKind.Relative);
var foo = System.Windows.Application.GetResourceStream(uri);

foo is null. What am I doing wrong?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf