开发者

Changing glow speed in default WPF Button

开发者 https://www.devze.com 2023-03-16 08:57 出处:网络
The default WPF button we have in Visual Studio: when mouse hover on it, the button background will glow from grey 开发者_JS百科to blue. The speed is too slow. How to speed up the glowing effect in XA

The default WPF button we have in Visual Studio: when mouse hover on it, the button background will glow from grey 开发者_JS百科to blue. The speed is too slow. How to speed up the glowing effect in XAML?

Is there something like below?:

<Style TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
    <Setter Property="GlowSpeed" Value="0.01" />
</Style>

Of course, this property doesn't exist. What property is that suppose to be? Is that some sort of Animation?


This animation is embedded in the default Template of the button, you would need to change the default template which can be found on MSDN (Default WPF Themes link).

0

精彩评论

暂无评论...
验证码 换一张
取 消