现在,如果我单击按钮A,按钮B会显示一个DropShadow效果:
Private Sub ButtonA_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles ButtonA.Click
Dim objDropShadow As New DropShadowEffect
objDropShadow.ShadowDepth = 0
objDropShadow.BlurRadius = 30
objDropShadow.Color = Colors.GreenYellow
Me.ButtonB.Effect = objDropShadow
End Sub
如果单击按钮C,如何删除按钮B的DropShadow效果?
最佳答案
Private Sub ButtonC_Click(
ByVal sender As System.Object,
ByVal e As System.Windows.RoutedEventArgs) Handles ButtonC.Click
Dim objDropShadow As New DropShadowEffect
objDropShadow.ShadowDepth = 0
objDropShadow.BlurRadius = 0
objDropShadow.Color = Colors.Transparent
Me.ButtonB.Effect = objDropShadow
End Sub
关于wpf - WPF删除DropShadow效果,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17714605/