Popup Not Showing
问题 On a tap event I would like to show a popup all within code behind, but my popup is not displaying? 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 =