Storing WPF Image Resources

后端 未结 10 2070
眼角桃花
眼角桃花 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:43

    1. Visual Studio 2010 Professional SP1.
    2. .NET Framework 4 Client Profile.
    3. PNG image added as resource on project properties.
    4. New file in Resources folder automatically created.
    5. Build action set to resource.

    This worked for me:

    
    

提交回复
热议问题