[ACCEPTED]-How can I get a BitmapImage from a Resource?-pack-uri
Accepted answer
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:
pack://application:,,,/ResourceFile.xaml
pack://application:,,,/ReferencedAssembly;component/ResourceFile.xaml
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.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.