code>可以正常工作,但看起来不像Aero玻璃窗口。I looked at creating an irregularly-shaped window, by using AllowTransparency="True" and that works fine, but doesn't look like an Aero glass window. It looks a bit flat.所以:我的问题:如何在WPF中创建一个看起来像Aero玻璃透明性但使用不同颜色的窗口?So: my question: how do I create a window in WPF that looks like Aero glass transparency, but uses a different colour?推荐答案我认为实现此目的的唯一可能方法是使用半透明的填充边框并将其绘制在整个窗口或部分区域上你拿到杯子了。一种解决方法,但是我想这是一个可能的解决方案,因为玻璃的颜色由系统用户定义,并且此设置会覆盖您的玻璃。I think the only possible way to achieve this is to use a semi-transparent filled border and draw it over the entire window or the part you got the glass. Its a workaround but I guess it's a possible solution since the color of the glass gets defined by the system-user and this setting would overwrite yours. 这篇关于更改窗户的Aero玻璃的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-23 09:18