按钮在WPF中保持闪烁 [英] Button keeps on blinking in wpf

查看:299
本文介绍了按钮在WPF中保持闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在wpf中做了一个简单的应用程序,它有一个登录窗口.现在发生的是,当我单击登录按钮时,如果用户名和密码与上面提到的不同,则出现一个无效登录的消息框,但是当我关闭该消息框时,登录按钮一直闪烁,我不知道为什么?我有win7操作系统.

请帮助我解决此错误.

谢谢与问候,
Krunal panchal

Hello everyone,

I have made a simple application in wpf , which has a login window. now what happens is when i click login button and if username and password are different as mentioned then an message box appears for invalid login, but when i close the message box the login button keeps on blinking i dont know why?? I have win7 os.

Please help me to resolve this error.

Thanks & Regards,
Krunal panchal

推荐答案

在wpf中,默认的Aero模板选择按钮闪烁.您需要修改按钮的模板并从其中删除"storyboard"元素以禁用闪烁.
In wpf''s default Aero template selected button is blinking. You neeed to modify button''s template and remove ''storyboard'' elements from it to disable blinking.


这篇关于按钮在WPF中保持闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆