コード例 #1
0
        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");
        }
コード例 #2
0
 private void BarButtonRefresh_Click(object sender, RoutedEventArgs e)
 {
     _currentChat.RefreshConversation();
 }