gpt4 book ai didi

WPF 去除 DropShadow 效果

转载 作者:行者123 更新时间:2023-12-02 08:39:47 35 4
gpt4 key购买 nike

现在如果我点击按钮 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 效果?

最佳答案

尝试一下

Me.ButtonB.Effect = Nothing        // VB.Net
this.ButtonB.Effect = null; // C#

关于WPF 去除 DropShadow 效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17714605/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com