定制异型Aero的Windows在C#中?像这些! [英] Custom Shaped Aero Windows in C#? Like THESE!
本文介绍了定制异型Aero的Windows在C#中?像这些!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何像这样的不规则形状的Aero窗口?结果
查找右下角!结果
该计划也做了。
这也做了! > _<更...
This also does it! >_< Even more...
推荐答案
我最近使用的这个解决方案,它为我工作:
I recently used this solution and it worked for me:
的 http://devintelligence.com/2007/10/shaped-windows-in-wpf/
我有,因为我的项目的其余部分使用的WinForms创建包含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.
虽然你可能需要更改 WindowStyle =无
其他否则
你有没有关闭按钮等等东西。
Though you might need to change WindowStyle="None"
to something other or else
you'll have no close button etc.
这篇关于定制异型Aero的Windows在C#中?像这些!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文