private void hideProgressBar()
 {
     SurfaceWindow1.getProgressIndicator(this).Visibility = Visibility.Collapsed;
 }
 private void showProgressBar()
 {
     SurfaceWindow1.getProgressIndicator(this).Visibility = Visibility.Visible;
 }