private void HandleLoadingStatusUpdated(ProfileLoadingStatus status) { this.UpdatePageState(status); if (status == ProfileLoadingStatus.Loading || status == ProfileLoadingStatus.Reloading) { return; } this.UpdateHeaderOpacity(); }
private void HandleLoadingStatusUpdated(ProfileLoadingStatus status) { string stateName; switch (status) { case ProfileLoadingStatus.Loading: stateName = "Loading"; break; case ProfileLoadingStatus.Reloading: stateName = "Reloading"; break; case ProfileLoadingStatus.Loaded: stateName = "Loaded"; break; case ProfileLoadingStatus.LoadingFailed: stateName = "LoadingFailed"; break; case ProfileLoadingStatus.Deleted: case ProfileLoadingStatus.Banned: case ProfileLoadingStatus.Blacklisted: case ProfileLoadingStatus.Service: stateName = "Blocked"; break; case ProfileLoadingStatus.Private: stateName = "Private"; break; default: return; } VisualStateManager.GoToState((Control)this, stateName, false); }