进度条隐藏时,进度条isinderminate = true不起作用 [英] progress bar isinderminate=true not working when its visibility is hidden

查看:129
本文介绍了进度条隐藏时,进度条isinderminate = true不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我的进度条被隐藏了.然后在按钮上单击我要显示带有isinderminate = true的进度条.然后再次在按钮上单击以隐藏进度条.
但是在运行代码时,进度条根本不可见.

代码:-
button1单击

Firstly my progressbar is hidden. then on a button click i want to show progress bar with isinderminate=true. Then again on a button click hide the progressbar.
But on running the code progressbar is not visible at all.

code:-
button1 click

pr1.Visibility=Visibility.Visible;
pr1.IsIndeterminate=true;




button2单击




button2 click

pr1.Visibility=Visibility.Hidden;
pr1.IsIndeterminate=false;

推荐答案

请看以下内容:

这篇关于进度条隐藏时,进度条isinderminate = true不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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