我有一个WPF项目,并在主窗口需要有圆角。我可以通过设置ALLOWTRANSPARENCY =真正做到这一点现在。这种方式的白色背景附近的圆角变得透明。
I have a WPF project and the main window is required to have rounded corners. I can do this currently by setting AllowTransparency=True. This way the white background near the rounded corners becomes transparent.
不过,ALLOWTRANSPARENCY是缓慢和马车。特别是有一个众所周知问题,即ALLOWTRANSPARENCY被严重破坏,MS拒绝修复它 - 它会影响我的客户。另外,MS建议的修补程序是不一致的,在最好的,所以这也是不是一种选择。
However, AllowTransparency is slow and buggy. Particularly there's a known issue where AllowTransparency is badly broken and MS refuses to fix it -- and it affects my customers. Also the MS suggested hotfix is inconsistent at best, so this is also not an option.
看来我有两个选择:1)简单地关闭ALLOWTRANSPARENCY并有一个悲惨丑陋的形式或2)找到一个解决方法,有圆边没有ALLOWTRANSPARENCY
It seems I have two choices: 1) simply turn off AllowTransparency and have a miserably ugly form or 2) find a workaround to have rounded edges without AllowTransparency.
StackO是有可能有ALLOWTRANSPARENCY =虚假的WPF项目圆滑的边缘?谢谢你。
StackO is it possible to have rounded edges with AllowTransparency=False in a WPF project? Thanks.
推荐答案
也许这可以帮助? http://www.kirupa.com/blend_wpf/custom_wpf_windows.htm (与ALLOWTRANSPARENCY仍) 或者这一个: HTTP://www.$c$cproject.com/KB /WPF/CustomWPFWindow.aspx
Maybe this helps ? http://www.kirupa.com/blend_wpf/custom_wpf_windows.htm (still with AllowTransparency ) Or this one: http://www.codeproject.com/KB/WPF/CustomWPFWindow.aspx
相关推荐
最新文章