public ProgressModel() { AddLoading = new DelegateCommand(() => { Progress.IsLoading = true; LoadingCount++; }); RemoveLoading = new DelegateCommand(() => { Progress.IsLoading = false; if (LoadingCount > 0) { LoadingCount--; } }); LoadingCount = 0; ClearLoading = new DelegateCommand(() => Progress.ClearIndicator()); BarText = ""; SetText = new DelegateCommand(() => Progress.Text = BarText); }