private Task HideAsyncImpl() { if (_indicator != null) { return(_indicator.HideAsync().AsTask()); } _isVisible = false; return(new Task(() => { SetTaskbarProgress(-2); })); }
public async static void ChangeVisibility(Windows.UI.ViewManagement.StatusBarProgressIndicator progressBar, bool visible) { if (visible) { await progressBar.ShowAsync(); } else { await progressBar.HideAsync(); } }