忙碌指示器未显示在 wpf 窗口中
可能的重复:
wpf busyindicator 未显示
我正在尝试在这样的窗口中使用忙碌指示器:
<extToolkit:BusyIndicator Width="160" Height="100"
x:Name="busyIndicator" Visibility="Hidden" />
当用户选择要导入的一些文件,然后对这些文件进行一些解析时,我尝试调用它。
并设置这两个属性:
importProgressBar.busyIndicator.IsBusy = true;
importProgressBar.busyIndicator.Visibility = Visibility.Visible;
在窗口弹出之前。
每当文件解析完成时,我都会调用委托函数。在其中我用繁忙指示器调用窗口。
private void ShowIndicator(ProgressReport progressReport)
{
window.Show();
if (progressReport.OverallProgress.Completed)
{
window.Close();
}
}
因此,正如您在该函数中看到的,我已完成属性,完成后将自动关闭窗口,但窗口显示时没有忙碌指示器。
有人可以指出为什么窗口中没有显示繁忙指示器吗?
Possible Duplicate:
wpf busyindicator not showing up
I am tryihng to use busy indicator in a window like this:
<extToolkit:BusyIndicator Width="160" Height="100"
x:Name="busyIndicator" Visibility="Hidden" />
I am trying to call this when the user chooses some files to import and then im doing some parsing on those files.
And setting these two properties:
importProgressBar.busyIndicator.IsBusy = true;
importProgressBar.busyIndicator.Visibility = Visibility.Visible;
before the window pops up.
I am calling a delegate function whenever a file parsing is finished. And inside that I'm calling the window with the busy indicator.
private void ShowIndicator(ProgressReport progressReport)
{
window.Show();
if (progressReport.OverallProgress.Completed)
{
window.Close();
}
}
So as you can see inside this function I have property completed which on complete will close the window automatically but the window shows up with no busy indicator.
Can someone point out why busy indicator is not showing in window?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用途:
use: