Exemplo n.º 1
0
 private async void UserList_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     if (this.UserList.SelectedItem != null && this.UserList.SelectedItem is UserViewModel)
     {
         UserViewModel user = (UserViewModel)this.UserList.SelectedItem;
         this.UserList.SelectedIndex = -1;
         await ChatUserDialogControl.ShowUserDialog(user);
     }
 }
Exemplo n.º 2
0
 private async void UserInformationMenuItem_Click(object sender, RoutedEventArgs e)
 {
     if (this.AlertsListView.SelectedItem != null && this.AlertsListView.SelectedItem is ChatMessageViewModel)
     {
         ChatMessageViewModel message = (ChatMessageViewModel)this.AlertsListView.SelectedItem;
         if (message.User != null)
         {
             await ChatUserDialogControl.ShowUserDialog(message.User);
         }
     }
 }