4 instantiations of Popup
PresentationFramework (4)
System\Windows\Controls\ContextMenu.cs (1)
483_parentPopup = new Popup
System\Windows\Controls\ToolTip.cs (1)
503_parentPopup = new Popup
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8707DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.Popup(); },
System\Windows\Markup\KnownTypes.cs (1)
1470case KnownElements.Popup: o = new System.Windows.Controls.Primitives.Popup(); break;
179 references to Popup
PresentationFramework (131)
System\Windows\Controls\ComboBox.cs (3)
28[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))] 1640_dropDownPopup = GetTemplateChild(PopupTemplateName) as Popup; 2027private Popup _dropDownPopup;
System\Windows\Controls\ContextMenu.cs (8)
125Popup.IsOpenProperty.AddOwner( 272Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ContextMenu)); 291Popup.StaysOpenProperty.AddOwner(typeof(ContextMenu)); 499_parentPopup.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.MenuPopupAnimationKey); 503Popup.CreateRootPopup(_parentPopup, this); 677if (!Popup.IsRootedInPopup(_parentPopup, this)) 687if (!Popup.IsRootedInPopup(_parentPopup, this)) 697private Popup _parentPopup;
System\Windows\Controls\DatePicker.cs (5)
25[TemplatePart(Name = DatePicker.ElementPopup, Type = typeof(Popup))] 42private Popup _popUp; 679_popUp = GetTemplateChild(ElementPopup) as Popup; 893Popup popup = sender as Popup;
System\Windows\Controls\MenuItem.cs (3)
60[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))] 2172_submenuPopup = GetTemplateChild(PopupTemplateName) as Popup; 2710private Popup _submenuPopup;
System\Windows\Controls\PopupControlService.cs (1)
603Interval = Popup.AnimationDelayTime
System\Windows\Controls\Primitives\MenuBase.cs (2)
407Popup popup = popupRoot.Parent as Popup;
System\Windows\Controls\Primitives\Popup.cs (67)
49EventManager.RegisterClassHandler(typeof(Popup), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 50EventManager.RegisterClassHandler(typeof(Popup), DragDrop.DragDropStartedEvent, new RoutedEventHandler(OnDragDropStarted), true); 51EventManager.RegisterClassHandler(typeof(Popup), DragDrop.DragDropCompletedEvent, new RoutedEventHandler(OnDragDropCompleted), true); 53VisibilityProperty.OverrideMetadata(typeof(Popup), new FrameworkPropertyMetadata(VisibilityBoxes.CollapsedBox, null, new CoerceValueCallback(CoerceVisibility))); 84typeof(Popup), 108typeof(Popup), 125Popup popup = (Popup)d; 150internal static readonly UncommonField<List<Popup>> RegisteredPopupsField = new UncommonField<List<Popup>>(); 175private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget) 186List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 189registeredPopups = new List<Popup>() 206private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget) 211List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 284typeof(Popup), 305Popup popup = (Popup)d; 339Popup popup = (Popup)d; 423((Popup)sender).SetCurrentValueInternal(IsOpenProperty, BooleanBoxes.FalseBox); 436typeof(Popup), 477Popup popup = (Popup) d; 508typeof(Popup), 530typeof(Popup), 550Popup popup = (Popup)d; 574typeof(Popup), 596Popup popup = (Popup) d; 610typeof(Popup), 635typeof(Popup), 658Popup ctrl = (Popup) d; 679typeof(Popup), 720Popup popup = popupRoot.Parent as Popup; 760typeof(Popup), 780return ((Popup)o).AllowsTransparency ? value : PopupAnimation.None; 796Window.AllowsTransparencyProperty.AddOwner(typeof(Popup), 818return ((Popup)d)._secHelper.IsChildPopup ? BooleanBoxes.FalseBox : value; 826typeof(Popup), 849return BooleanBoxes.Box(SystemParameters.DropShadow && ((Popup)d).AllowsTransparency); 868public static void CreateRootPopup(Popup popup, UIElement child) 880internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty) 979internal static bool IsRootedInPopup(Popup parentPopup, UIElement element) 1197Popup parentPopup = parentPopupRoot.Parent as Popup; 1215Popup popup = sender as Popup; 1247Popup newPopup = (newRoot == null) ? null : newRoot.Parent as Popup; 1267Popup popup = (Popup)sender; 1273Popup popup = (Popup)sender; 1401internal PopupModelTreeEnumerator(Popup popup, object child) 1418private Popup _popup; 1465Popup popup = (Popup)arg; 3277Popup popup = dependencyObject as Popup; 3536private static NativeMethods.POINT? GetPlacementTargetOriginInScreenCoordinates(Popup popup) 3541var rootVisual = Popup.GetRootVisual(target); 3542var targetToClientTransform = Popup.TransformToClient(target, rootVisual); 3560internal static NativeMethods.POINT GetPlacementOrigin(Popup popup)
System\Windows\Controls\Primitives\PopupRoot.cs (6)
142Popup popup = Parent as Popup; 215private Size GetPopupSizeRestrictions(Popup popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight) 218restrictWidth = Math.Abs(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance; 219restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance; 248internal void SetupLayoutBindings(Popup popup)
System\Windows\Controls\Slider.cs (2)
850((Popup)_autoToolTip.Parent).Reposition(); 889((Popup)_autoToolTip.Parent).Reposition();
System\Windows\Controls\ToolTip.cs (7)
298Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ToolTip)); 317Popup.StaysOpenProperty.AddOwner(typeof(ToolTip)); 455if (!Popup.IsRootedInPopup(_parentPopup, this)) 465if (!Popup.IsRootedInPopup(_parentPopup, this)) 521_parentPopup.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.ToolTipPopupAnimationKey); 525Popup.CreateRootPopupInternal(_parentPopup, this, true); 584private Popup _parentPopup;
System\Windows\DescendentsWalker.cs (6)
232List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 236foreach (Popup p in registeredPopups) 336List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 340foreach (Popup p in registeredPopups)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
579case 485: t = () => typeof(Popup); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
3330Type type = typeof(System.Windows.Controls.Primitives.Popup); 3331DependencyProperty dp = System.Windows.Controls.Primitives.Popup.ChildProperty; 3333this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3346Type type = typeof(System.Windows.Controls.Primitives.Popup); 3347DependencyProperty dp = System.Windows.Controls.Primitives.Popup.IsOpenProperty; 3349this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3365Type type = typeof(System.Windows.Controls.Primitives.Popup); 3366DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PlacementProperty; 3368this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3384Type type = typeof(System.Windows.Controls.Primitives.Popup); 3385DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PopupAnimationProperty; 3387this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8704typeof(System.Windows.Controls.Primitives.Popup),
System\Windows\Markup\KnownTypes.cs (5)
1854return System.Windows.Controls.Primitives.Popup.ChildProperty; 1856return System.Windows.Controls.Primitives.Popup.IsOpenProperty; 1858return System.Windows.Controls.Primitives.Popup.PlacementProperty; 1860return System.Windows.Controls.Primitives.Popup.PopupAnimationProperty; 6033case KnownElements.Popup: t = typeof(System.Windows.Controls.Primitives.Popup); break;
System\Windows\SystemResources.cs (1)
1264popupRoot.Parent.CoerceValue(Popup.HasDropShadowProperty);
System\Windows\TreeWalkHelper.cs (1)
1274(Popup.RegisteredPopupsField.GetValue(fe) != null)
System.Windows.Controls.Ribbon (48)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
50[TemplatePart(Name = Ribbon.ItemsPresenterPopupTemplateName, Type = typeof(Popup))] 58private Popup _itemsPresenterPopup; // The Popup containing Ribbon's ItemsPresenter. 720internal Popup ItemsPresenterPopup 740_itemsPresenterPopup = this.GetTemplateChild(ItemsPresenterPopupTemplateName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
30[TemplatePart(Name = RibbonApplicationMenu.PopupTemplateName, Type = typeof(Popup))] 42private Popup _popup; 300_popup = this.GetTemplateChild(PopupTemplateName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (4)
83Popup ancestorPopup = TreeHelper.FindAncestor(dismissPopupSource, delegate(DependencyObject element) { return (element is Popup); }) as Popup; 642private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (6)
158public static Rect GetScreenBounds(FrameworkElement targetElement, Popup popup) 195public static void ClearLocalValues(FrameworkElement itemsPresenter, Popup popup) 204popup.ClearValue(Popup.PlacementProperty); 205popup.ClearValue(Popup.VerticalOffsetProperty); 206popup.ClearValue(Popup.HorizontalOffsetProperty); 210public static Size GetMinDropDownSize(RibbonMenuItemsPanel itemsHost, Popup popup, Thickness borderThickness)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
45[TemplatePart(Name = RibbonGroup.PopupTemplatePartName, Type = typeof(Popup))] 126_collapsedGroupPopup = GetTemplateChild(PopupTemplatePartName) as Popup; 1372private Popup _collapsedGroupPopup;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (14)
148internal static void FindAndHookPopup(DependencyObject element, ref Popup popup) 157popup = LogicalTreeHelper.GetParent(rootVisual) as Popup; 172RibbonHelper.UpdatePopupAnimation((Popup)sender); 175private static void UpdatePopupAnimation(Popup popup) 1327public static UIElement TryGetChild(this Popup popup) 2409Popup popup = menuItem.Popup; 2416BindingOperations.SetBinding(popup, Popup.PlacementTargetProperty, binding); 2422BindingOperations.SetBinding(popup, Popup.WidthProperty, binding); 2428BindingOperations.SetBinding(popup, Popup.HeightProperty, binding); 2435Popup popup = menuItem.Popup; 2438popup.ClearValue(Popup.PlacementTargetProperty); 2439popup.ClearValue(Popup.WidthProperty); 2440popup.ClearValue(Popup.HeightProperty); 2899TreeHelper.InvalidateMeasureForVisualAncestorPath<Popup>(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (4)
38[TemplatePart(Name = RibbonMenuButton.PopupTemplatePartName, Type = typeof(Popup))] 697_popup = GetTemplateChild(PopupTemplatePartName) as Popup; 1306internal Popup Popup 1332private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (4)
37[TemplatePart(Name = RibbonMenuItem.PopupTemplatePartName, Type = typeof(Popup))] 643_popup = GetTemplateChild(PopupTemplatePartName) as Popup; 1036internal Popup Popup 1593private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (3)
36[TemplatePart(Name = OverflowPopupTemplatePartName, Type = typeof(Popup))] 49private Popup _overflowPopup; // The Popup that hosts the overflow panel. 306_overflowPopup = GetTemplateChild(OverflowPopupTemplatePartName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (3)
302Popup popupParent = LogicalTreeHelper.GetParent(element) as Popup; 431private Popup _popup;