Wednesday, October 22, 2008

Trips&Ticks: Do you know how do you need to change properties of local file when it will be loaded, using a Relative Uri?

When I had tried to use Relative URIs for local files I found next trouble - resource wasn't found in my app. Solution for this problem is next actions: we should open properties of local file and change flag named "Copy to Output Directory" from "Do not Copy" to "Copy always".
Easy and logically.

PS: Nice article about URI in WPF - Pack URIs in Windows Presentation Foundation

No comments: