你好,
一般的方式是重写窗体样式,在图片容器外套一层容器,对它应用DropShadowEffect:
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="70" Width="320"
WindowStyle="None" AllowsTransparency="True" Background="Transparent"
WindowStartupLocation="Manual">
我的ICO都是Metro样式的,如截图看来基本没问题,对于像你这种ICO,有个问题是阴影会环绕每个图标,而不是环绕整个窗体。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
本文介绍了一种在 WPF 应用中实现图标阴影效果的方法。通过在图片容器外添加一层容器,并对该容器应用 DropShadowEffect 效果,可以为图标添加阴影,提升 UI 的视觉体验。
4万+

被折叠的 条评论
为什么被折叠?



