title: Popup Not Showing
body: <p>On a tap event I would like to show a popup all within code behind, but my popup is not displaying?</p>
  
  <pre><code>void PopupDisplay_Tap(object sender, System.Windows.Input.GestureEventArgs e)
      {
          if (sender != null)
          {
              p = new Popup
              {
                  Width = 480,
                  Height = 580,
                  HorizontalAlignment = System.Windows.HorizontalAlignment.Center,
                  VerticalAlignment = System.Windows.VerticalAlignment.Center                    
              };
  
              Border b = new Border();
              b.BorderBrush = new SolidColorBrush(Colors.Gray);
              b.BorderThickness = new Thickness(2);
              b.Margin = new Thickness(10, 10, 10, 10);
  
              p.Child = b;
              p.IsOpen = true;
          }
      }
  </code></pre>