Custom Shaped Aero Windows in C#? Like THESE!

后端 未结 1 534
囚心锁ツ
囚心锁ツ 2021-02-05 22:28

\"enter How do I make an irregular shaped Aero window like this one?
Look in the lower right c

相关标签:
1条回答
  • 2021-02-05 22:45

    I recently used this solution and it worked for me:

    http://devintelligence.com/2007/10/shaped-windows-in-wpf/

    I had to create a separate assembly containing the WPF form because the rest of my project uses WinForms. From there it's quite straight forward: Use a background image with transparency and set the form to transparent.

    Though you might need to change WindowStyle="None" to something other or else you'll have no close button etc.

    0 讨论(0)
提交回复
热议问题