示例#1
0
        private Task HideAsyncImpl()
        {
            if (_indicator != null)
            {
                return(_indicator.HideAsync().AsTask());
            }

            _isVisible = false;
            return(new Task(() => { SetTaskbarProgress(-2); }));
        }
示例#2
0
 public async static void ChangeVisibility(Windows.UI.ViewManagement.StatusBarProgressIndicator progressBar, bool visible)
 {
     if (visible)
     {
         await progressBar.ShowAsync();
     }
     else
     {
         await progressBar.HideAsync();
     }
 }