Custom Shaped Aero Windows in C#? Like THESE!

2019-03-15 11:19发布

问题:

How do I make an irregular shaped Aero window like this one?
Look in the lower right corner!
This program also does it.

This also does it! >_< Even more...

回答1:

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.



标签: c# aero