Beispiel #1
0
        public void DetachChat()
        {
            if (MessagingService.Instance.IsChatDetached)
            {
                return;
            }

            if (_detachedChatWindow == null)
            {
                _detachedChatWindow          = new Window();
                _detachedChatWindow.Closing += OnDetachedChatClosing;
                _detachedChatWindow.Content  = new ConversationTransitionView();
            }


            _detachedChatWindow.Height = 700;
            _detachedChatWindow.Width  = 400;


            _detachedChatWindow.Show();
            MessagingService.Instance.IsChatDetached = true;
            OnChatDetached.Invoke();
        }
Beispiel #2
0
 private void OnDetachedChatClosing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     _detachedChatWindow = null;
     MessagingService.Instance.IsChatDetached = false;
     OnChatDetached.Invoke();
 }