/// <summary> /// The ConversationWindow.NeedsAttention event fires when a new message or other conversation /// element has been delivered (such as an incoming IM) but the window does not have focus. /// Lync handles this situation by causing the title bar of the window to flash until the user clicks on the /// window to acknowledge the new information. We will propagate this event to the MainWindow /// where a similar behavior can be simulated. /// </summary> void HandleNeedsAttention(object sender, ConversationWindowNeedsAttentionEventArgs e) { if (ConversationWindowNeedsAttentionEvent != null) { ConversationWindowNeedsAttentionEvent(this, null); } }
private void _conversationWindow_NeedsAttention(object sender, ConversationWindowNeedsAttentionEventArgs e) { FocusWindow focusWindow = new FocusWindow(GetWindowFocus); Dispatcher.Invoke(focusWindow, new object[] { }); }