BusyIndicator控件重复显示好象有问题
/// <summary>
/// 进度条
/// </summary>
/// <param name="isWait"></param>
public static void SetWaitWindow(Grid g,string msg = "") {
var isWait = string.IsNullOrEmpty(msg);
fBusyIndicator.IsBusy = !isWait;
fBusyIndicator.BusyContent = msg;
if (fBusyIndicator.Parent != null)
((Grid)fBusyIndicator.Parent).Children.Remove(fBusyIndicator);
g.Children.Add(fBusyIndicator);
}
static BusyIndicator fBusyIndicator;
-------------------------
第一次调用的时候能显示出来 但当第二次(调用时)就没反应了,不晓得是怎么回事