Interaction logic for ChatWindow.xaml
Inheritance: System.Windows.Controls.UserControl
Beispiel #1
0
 public UserImage()
 {
     InitializeComponent();
     GwupeClientAppContext _appContext = GwupeClientAppContext.CurrentAppContext.UIManager.GetAppcontext();
     ChatWindow chatWindow = new ChatWindow();
     DataContext = new ChatWindowDataContext(_appContext);
 }
Beispiel #2
0
 internal void ShowChat()
 {
     //GwupeClientAppContext.CurrentAppContext.UIManager.GetEngagement(Engagement, this);
     _chatWindow = _chatWindow ?? new ChatWindow(_appContext, this) { Notifications = { ItemsSource = _notificationView.View } };
     EngagementContent.Content = _chatWindow;
     Engagement.IsUnread = false;
     EngagementVisibleContent = EngagementVisibleContent.Chat;
 }
Beispiel #3
0
 public ChatWindowDataContext(GwupeClientAppContext appContext, ChatWindow chatWindow)
 {
     this._appContext = appContext;
     this._chatWindow = chatWindow;
     Self = _appContext.CurrentUserManager.CurrentUser;
 }