예제 #1
0
 public static void MessageToastTapped(object sender, GestureEventArgs args)
 {
     try
     {
         if (sender is ToastPrompt)
         {
             ToastPrompt prompt = sender as ToastPrompt;
             ChatPageViewModel.SetSelectedUser(prompt.Tag.ToString());
         }
     }
     catch (Exception ex)
     {
         ex.ToString();
     }
 }
예제 #2
0
        private static void ToastTapped(ToastNotification sender, object args)
        {
            try
            {
                if (args is Dictionary <String, String> )
                {
                    Dictionary <String, String> values            = args as Dictionary <String, String>;
                    ChatPageViewModel           chatPageViewModel = ServiceLocator.Current.GetInstance <ChatPageViewModel>();

                    chatPageViewModel.SetSelectedUser(values["fromId"]);
                }
            }
            catch (Exception ex)
            {
                ex.ToString();
            }
        }