Pack URI to Reference Component

added by abhi2434
5/22/2010 7:05:03 PM

1 Kicks, 81 Views

WPF comes with a new URI Scheme which one can use to reference a file that is packaged as resource into the assembly. Rather than using DynamicResource, or specifying the absolute path for the Resource (which would eventually translate itself to relative reference always), the actual path can also be restored using pack:\\ URI Schema.