Exemplo n.º 1
0
 /// <summary>
 /// handler for bottom soft buttons
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnAppBarButtonTap(object sender, ButtonTapEventArgs e)
 {
     switch (e.ButtonID)
     {
         // exit
         case 0:
             {
                 Close();
                 break;
             }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handler for app bar buttons.
 /// 0 is edit contact
 /// 1 is close
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnAppBarButtonTap(object sender, ButtonTapEventArgs e)
 {
     if (e.ButtonID == 1) // edit
         OpenContact();
     else
         Close();
 }