How to change title bar image in WPF Window?

后端 未结 6 2069
太阳男子
太阳男子 2020-12-14 14:58

How to change the titile bar image (the top-left most icon) in WPF?

6条回答
  •  时光说笑
    2020-12-14 15:24

    1. Add ico file to project Resources and check as Embedded Resource
    2. Set Project->Properties->Icon and choose from Resources
    3. Run Project in Release Mode or start without debugging.

提交回复
热议问题