【发布时间】:2017-12-28 10:51:54
【问题描述】:
我想要圆角的窗角(更具体地说,只在前两个),
但是我的window background is semitransparent blurred of whatever is behind it,并且我正在尝试使用具有圆角边框的常用方法,这可行,但是窗口即使是透明的,仍然会发出模糊效果。
【问题讨论】:
标签: wpf
我想要圆角的窗角(更具体地说,只在前两个),
但是我的window background is semitransparent blurred of whatever is behind it,并且我正在尝试使用具有圆角边框的常用方法,这可行,但是窗口即使是透明的,仍然会发出模糊效果。
【问题讨论】:
标签: wpf
您需要将 WindowStyle 设置为 WindowStyle.None,这将删除镶边,然后您可以允许透明度,这是 Window 元素的一个属性,并将背景颜色设置为透明。所有这些都可以作为 window 标签的属性来完成。
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
要使角变圆,请使用边框并设置cornerRadius 属性
【讨论】: