本文介绍了WPF BusyIndicator控件没有显示出来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有我的窗户上一个WPF繁忙的指标是这样的:
I have a wpf busy indicator like this on my window:
<Grid><Controls1:BusyIndicator x:Name="busyIndicator2" IsBusy="False" Content="Please wait....." Visibility="Hidden"/>
</Grid>
和中键点击我米试图将可视性,指标isBusy属性设置为true可见
And in the button click I m trying to set the visiblity,isBusy property of indicator to true and visible.
void button_click(object sender, RoutedEventArgs e)
{
busyIndicator2.Visibility = System.Windows.Visibility.Visible;
busyIndicator2.IsBusy = true;
}
但indicaotr没有显示出来。
but the indicaotr is not showing up.
任何想法,为什么?
推荐答案
我一直裹着其他WPF内容与BusyIndicator控件,它然后。显示出来集中在这些内容
I've always wrapped other wpf content with the BusyIndicator, it then shows up centered over that content.
<BusyIndicator...>
<Grid>....</Grid>
</BusyIndicator>
尝试在BusyIndicator控件包装布局的控制,看看是否已经做了你所追求的。
Try wrapping your layout control in the BusyIndicator and see if that does what you are after.
这篇关于WPF BusyIndicator控件没有显示出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!