Storing WPF Image Resources

后端 未结 10 2073
眼角桃花
眼角桃花 2020-11-22 11:17

For a WPF application which will need 10 - 20 small icons and images for illustrative purposes, is storing these in the assembly as embedded resources the right way to go?

10条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 11:46

    Full description how to use resources: WPF Application Resource, Content, and Data Files

    And how to reference them, read "Pack URIs in WPF".

    In short, there is even means to reference resources from referenced/referencing assemblies.

提交回复
热议问题