[ACCEPTED]-How can I get a BitmapImage from a Resource?-pack-uri

Accepted answer
Score: 24

This MSDN page has all the information you might want 10 to know about resource URIs in WPF (often 9 called pack URIs). You're going to want 8 to use relative URIs more often probably, so see Table 4, which 7 should be of particular use.

If you want 6 a briefer overview of resource (pack) URIs, see 5 this blog post. It shows that syntax is indeed relatively 4 simple:



However, there are a few quirks to 3 work out (in my experience), so often finding 2 the correct resource URI requires a bit 1 of experimentation.

More Related questions