private void ModelOnPropertyChanged(object sender, PropertyChangedEventArgs args) { switch (args.PropertyName) { case "Status": ResourceStatus newStatus = Model.Status; _dispatcherQueue.Push(() => { Status = newStatus; }); break; case "HttpStatus": HttpStatusCode newHttpStatus = Model.HttpStatus; _dispatcherQueue.Push(() => { HttpStatus = newHttpStatus; }); break; case "TimeProcessing": TimeSpan newTimeProcessing = Model.TimeProcessing; _dispatcherQueue.Push(() => { Duration = newTimeProcessing; }); break; case "CurrentBucket": string newCurrentbucket = Model.CurrentBucket; _dispatcherQueue.Push(() => { CurrentBucket = newCurrentbucket; }); break; } }