开发者

Custom Shaped Aero Windows in C#? Like THESE!

开发者 https://www.devze.com 2023-03-14 10:23 出处:网络
How do I make an irregular shaped Aero window like this one? Look in the lower right 开发者_StackOverflow社区corner!

Custom Shaped Aero Windows in C#? Like THESE!

How do I make an irregular shaped Aero window like this one?

Look in the lower right 开发者_StackOverflow社区corner!

This program also does it.

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

Custom Shaped Aero Windows in C#? Like THESE!


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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号