Hi Matt,

 

Anyway, the solution is prefix your URI with pack://application:,,,/



You're right! Sorry for the delay due to distraction by another project. I
just ran an experiment with pack and it works. This is a terrible trap, as
my WPF Unlashed book by Adam Nathan says:

 

MyDll;Component:,,,/logo.jpg

 

Is shorthand notation for

 

Pack://application:,,,/MyDll;Component/logo.jpg

 

But if I take the prefix off I can see the images at design time but not a
runtime. He talks about pack in relation to siteOfOriginal, but gives the
impression that they are not suitable for my scenario with images in another
assembly. Oh well, at least one more gotcha is knocked over.

 

Thanks, Greg

_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to