protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (e.Parameter is ChatViewModel chat) { _currentChat = chat; ChatName.Text = _currentChat.Name; ListView.ItemsSource = _currentChat.Messages; _currentChat.RefreshConversation(); _currentChat.CheckSendingMessages(); this.Resources["CurrentChat.IsGroup"] = _currentChat.IsGroup ? Visibility.Visible : Visibility.Collapsed; } dispatcherTimer.Start(); //WebPopUp.RequestPage("http://www.google.fr"); }
private void BarButtonRefresh_Click(object sender, RoutedEventArgs e) { _currentChat.RefreshConversation(); }