/// <summary> /// By subscribing to the <see cref="TaskbarIcon.BalloonClosingEvent"/> /// and setting the "Handled" property to true, we suppress the popup /// from being closed in order to display the fade-out animation. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void OnBalloonClosing(object sender, RoutedEventArgs e) { e.Handled = true; NewMessages.Clear(); NewStatusUpdates.Clear(); NewSocialSearches.Clear(); }
public void UpdateCounts(IEnumerable <Message> messages, IEnumerable <UserStatus> statusUpdates, IEnumerable <UserStatus> searchUpdates) { NewMessages.Replace(messages); VisibleMessages.Replace(NewMessages.Take(3)); NewStatusUpdates.Replace(statusUpdates); VisibleStatusUpdates.Replace(NewStatusUpdates.Take(3)); NewSocialSearches.Replace(searchUpdates); VisibleSocialSearches.Replace(NewSocialSearches.Take(3)); }