public UserImage() { InitializeComponent(); GwupeClientAppContext _appContext = GwupeClientAppContext.CurrentAppContext.UIManager.GetAppcontext(); ChatWindow chatWindow = new ChatWindow(); DataContext = new ChatWindowDataContext(_appContext); }
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; }
public ChatWindowDataContext(GwupeClientAppContext appContext, ChatWindow chatWindow) { this._appContext = appContext; this._chatWindow = chatWindow; Self = _appContext.CurrentUserManager.CurrentUser; }