/// <summary>
        /// Handles event raised when conversation participant is entering a message to be sent.
        /// </summary>
        /// <param name="source">InstantMessageModality. The IM modality owned by the composing participant.</param>
        /// <param name="data">ComposingChangeEventArgs. Event argument data.</param>
        void myInstantMessageModality_ComposingChanged(Object source, IsTypingChangedEventArgs data)
        {
            if (data.IsTyping == true)
            {
                //****************************************************************
                //Get the name of the conversation participant whose typing status has changed.
                //****************************************************************
                string ParticipantName = ((InstantMessageModality)source).Participant.Contact.GetContactInformation(ContactInformationType.DisplayName).ToString();

                //****************************************************************
                //Invoke delegate to update the typing status label contents on the conversation form.
                //****************************************************************
                this.Dispatcher.Invoke(FormActor, new object[] { FormActions.UpdateLabel, ActivityText_Label, ParticipantName + " is typing" });

                //****************************************************************
                //Start the DispatcherTimer clock to tick in 5 seconds.
                //****************************************************************
                this.Dispatcher.Invoke(FormActor, new object[] { FormActions.StartTimer, _DispatcherTimer_DisplayComposing, null });
            }
        }
示例#2
0
 void imModality_IsTypingChanged(object sender, IsTypingChangedEventArgs e)
 {
     throw new NotImplementedException();
 }
 void ConversationTest_IsTypingChanged(object sender, IsTypingChangedEventArgs e)
 {
 }
 public void TypeingChanged(Object source, IsTypingChangedEventArgs data)
 {
 }