Neumorphism的C#WPF对偶dropsshadoweffect
我试图在listview上实现Neumorphism效应Neumorphism的C#WPF对偶dropsshadoweffect,c#,wpf,dropshadow,C#,Wpf,Dropshadow,我试图在listview上实现Neumorphism效应 <ListView.Template> <ControlTemplate> <Border Background="#FFFFFF" CornerRadius="5" BorderThickness="0"> <Border.Effect> <Dr
<ListView.Template>
<ControlTemplate>
<Border Background="#FFFFFF" CornerRadius="5" BorderThickness="0">
<Border.Effect>
<DropShadowEffect BlurRadius="6" Opacity="0.35" ShadowDepth="2" />
</Border.Effect>
<ItemsPresenter></ItemsPresenter>
</Border>
</ControlTemplate>
</ListView.Template>
只能为每个listview添加一个DropShadowEffect。有人有解决办法吗?当然,您可以继续 在这里,我在第一个边框中添加了另一个
边框
,并应用了第二个阴影效果
嗨,谢谢你的回答。不幸的是,这不起作用。它给Listview中的项目一个阴影。我希望ListView上有两个阴影是清晰的,
ListView
本身,或者每个ListViewItem
?啊,很抱歉不清楚。。。在执行上述操作(嵌套)时,每个ListViewItem都获得了阴影效果。我的目标是在ListView上有两个阴影效果。谢谢