开发者

Changing glow speed in default WPF Button

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜