public void RenderMyNotifications(object sender, OpenReadCompletedEventArgs e) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(NotificationType[])); NotificationType[] notifications = serializer.ReadObject(e.Result) as NotificationType[]; EnumMapper mapper = new EnumMapper("NotificationMappings.map"); NotificationCollection.Clear(); foreach (NotificationType type in notifications) { NotificationMapper.SetNotificationMessageForNotification(type, (NotificationEnum.Notifications)mapper.GetMappedValue(type.RawType)); NotificationCollection.Add(type); } IsLoading = false; Visible = "Collapsed"; }