Custom Shaped Aero Windows in C#? Like THESE!

偶尔善良 提交于 2019-12-03 12:13:01

问题


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.



来源:https://stackoverflow.com/questions/6438076/custom-shaped-aero-windows-in-c-like-these

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!