Pack URI to image embedded in a resx file

前端 未结 4 1347
情深已故
情深已故 2020-12-10 02:27

How do I construct a pack URI to an image that is in a resource file?

I have an assembly called MyAssembly.Resources.dll, it has a folder called Ima

4条回答
  •  盖世英雄少女心
    2020-12-10 02:46

    I described a component for using resx images in WPF in this blog post: http://wpfglue.wordpress.com/2012/05/31/localization-revisited/ . You will find more posts about using resx resources in WPF under http://wpfglue.wordpress.com/category/localization/

    In these posts, I don't use pack uris, but markup extensions.

提交回复
热议问题