4 instantiations of Popup
PresentationFramework (4)
System\Windows\Controls\ContextMenu.cs (1)
482_parentPopup = new Popup
System\Windows\Controls\ToolTip.cs (1)
501_parentPopup = new Popup
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8706DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.Popup(); },
System\Windows\Markup\KnownTypes.cs (1)
1469case KnownElements.Popup: o = new System.Windows.Controls.Primitives.Popup(); break;
179 references to Popup
PresentationFramework (131)
System\Windows\Controls\ComboBox.cs (3)
27[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))] 1631_dropDownPopup = GetTemplateChild(PopupTemplateName) as Popup; 2012private Popup _dropDownPopup;
System\Windows\Controls\ContextMenu.cs (8)
124Popup.IsOpenProperty.AddOwner( 271Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ContextMenu)); 290Popup.StaysOpenProperty.AddOwner(typeof(ContextMenu)); 498_parentPopup.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.MenuPopupAnimationKey); 502Popup.CreateRootPopup(_parentPopup, this); 676if (!Popup.IsRootedInPopup(_parentPopup, this)) 686if (!Popup.IsRootedInPopup(_parentPopup, this)) 696private Popup _parentPopup;
System\Windows\Controls\DatePicker.cs (5)
24[TemplatePart(Name = DatePicker.ElementPopup, Type = typeof(Popup))] 41private Popup _popUp; 678_popUp = GetTemplateChild(ElementPopup) as Popup; 889Popup popup = sender as Popup;
System\Windows\Controls\MenuItem.cs (3)
59[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))] 2164_submenuPopup = GetTemplateChild(PopupTemplateName) as Popup; 2696private Popup _submenuPopup;
System\Windows\Controls\PopupControlService.cs (1)
599Interval = Popup.AnimationDelayTime
System\Windows\Controls\Primitives\MenuBase.cs (2)
406Popup popup = popupRoot.Parent as Popup;
System\Windows\Controls\Primitives\Popup.cs (67)
48EventManager.RegisterClassHandler(typeof(Popup), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 49EventManager.RegisterClassHandler(typeof(Popup), DragDrop.DragDropStartedEvent, new RoutedEventHandler(OnDragDropStarted), true); 50EventManager.RegisterClassHandler(typeof(Popup), DragDrop.DragDropCompletedEvent, new RoutedEventHandler(OnDragDropCompleted), true); 52VisibilityProperty.OverrideMetadata(typeof(Popup), new FrameworkPropertyMetadata(VisibilityBoxes.CollapsedBox, null, new CoerceValueCallback(CoerceVisibility))); 83typeof(Popup), 107typeof(Popup), 124Popup popup = (Popup)d; 149internal static readonly UncommonField<List<Popup>> RegisteredPopupsField = new UncommonField<List<Popup>>(); 174private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget) 185List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 188registeredPopups = new List<Popup>() 205private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget) 210List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 283typeof(Popup), 304Popup popup = (Popup)d; 338Popup popup = (Popup)d; 422((Popup)sender).SetCurrentValueInternal(IsOpenProperty, BooleanBoxes.FalseBox); 435typeof(Popup), 476Popup popup = (Popup) d; 507typeof(Popup), 529typeof(Popup), 549Popup popup = (Popup)d; 573typeof(Popup), 595Popup popup = (Popup) d; 609typeof(Popup), 634typeof(Popup), 657Popup ctrl = (Popup) d; 678typeof(Popup), 719Popup popup = popupRoot.Parent as Popup; 759typeof(Popup), 779return ((Popup)o).AllowsTransparency ? value : PopupAnimation.None; 795Window.AllowsTransparencyProperty.AddOwner(typeof(Popup), 817return ((Popup)d)._secHelper.IsChildPopup ? BooleanBoxes.FalseBox : value; 825typeof(Popup), 848return BooleanBoxes.Box(SystemParameters.DropShadow && ((Popup)d).AllowsTransparency); 867public static void CreateRootPopup(Popup popup, UIElement child) 879internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty) 978internal static bool IsRootedInPopup(Popup parentPopup, UIElement element) 1196Popup parentPopup = parentPopupRoot.Parent as Popup; 1211Popup popup = sender as Popup; 1243Popup newPopup = (newRoot == null) ? null : newRoot.Parent as Popup; 1263Popup popup = (Popup)sender; 1269Popup popup = (Popup)sender; 1397internal PopupModelTreeEnumerator(Popup popup, object child) 1414private Popup _popup; 1461Popup popup = (Popup)arg; 3273Popup popup = dependencyObject as Popup; 3532private static NativeMethods.POINT? GetPlacementTargetOriginInScreenCoordinates(Popup popup) 3537var rootVisual = Popup.GetRootVisual(target); 3538var targetToClientTransform = Popup.TransformToClient(target, rootVisual); 3556internal static NativeMethods.POINT GetPlacementOrigin(Popup popup)
System\Windows\Controls\Primitives\PopupRoot.cs (6)
141Popup popup = Parent as Popup; 214private Size GetPopupSizeRestrictions(Popup popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight) 217restrictWidth = Math.Abs(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance; 218restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance; 247internal void SetupLayoutBindings(Popup popup)
System\Windows\Controls\Slider.cs (2)
831((Popup)_autoToolTip.Parent).Reposition(); 870((Popup)_autoToolTip.Parent).Reposition();
System\Windows\Controls\ToolTip.cs (7)
296Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ToolTip)); 315Popup.StaysOpenProperty.AddOwner(typeof(ToolTip)); 453if (!Popup.IsRootedInPopup(_parentPopup, this)) 463if (!Popup.IsRootedInPopup(_parentPopup, this)) 519_parentPopup.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.ToolTipPopupAnimationKey); 523Popup.CreateRootPopupInternal(_parentPopup, this, true); 579private Popup _parentPopup;
System\Windows\DescendentsWalker.cs (6)
231List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 235foreach (Popup p in registeredPopups) 335List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 339foreach (Popup p in registeredPopups)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
578case 485: t = () => typeof(Popup); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
3329Type type = typeof(System.Windows.Controls.Primitives.Popup); 3330DependencyProperty dp = System.Windows.Controls.Primitives.Popup.ChildProperty; 3332this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3345Type type = typeof(System.Windows.Controls.Primitives.Popup); 3346DependencyProperty dp = System.Windows.Controls.Primitives.Popup.IsOpenProperty; 3348this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3364Type type = typeof(System.Windows.Controls.Primitives.Popup); 3365DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PlacementProperty; 3367this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3383Type type = typeof(System.Windows.Controls.Primitives.Popup); 3384DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PopupAnimationProperty; 3386this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8703typeof(System.Windows.Controls.Primitives.Popup),
System\Windows\Markup\KnownTypes.cs (5)
1853return System.Windows.Controls.Primitives.Popup.ChildProperty; 1855return System.Windows.Controls.Primitives.Popup.IsOpenProperty; 1857return System.Windows.Controls.Primitives.Popup.PlacementProperty; 1859return System.Windows.Controls.Primitives.Popup.PopupAnimationProperty; 6032case KnownElements.Popup: t = typeof(System.Windows.Controls.Primitives.Popup); break;
System\Windows\SystemResources.cs (1)
1260popupRoot.Parent.CoerceValue(Popup.HasDropShadowProperty);
System\Windows\TreeWalkHelper.cs (1)
1270(Popup.RegisteredPopupsField.GetValue(fe) != null)
System.Windows.Controls.Ribbon (48)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
49[TemplatePart(Name = Ribbon.ItemsPresenterPopupTemplateName, Type = typeof(Popup))] 57private Popup _itemsPresenterPopup; // The Popup containing Ribbon's ItemsPresenter. 719internal Popup ItemsPresenterPopup 739_itemsPresenterPopup = this.GetTemplateChild(ItemsPresenterPopupTemplateName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
29[TemplatePart(Name = RibbonApplicationMenu.PopupTemplateName, Type = typeof(Popup))] 41private Popup _popup; 299_popup = this.GetTemplateChild(PopupTemplateName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (4)
82Popup ancestorPopup = TreeHelper.FindAncestor(dismissPopupSource, delegate(DependencyObject element) { return (element is Popup); }) as Popup; 641private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (6)
157public static Rect GetScreenBounds(FrameworkElement targetElement, Popup popup) 194public static void ClearLocalValues(FrameworkElement itemsPresenter, Popup popup) 203popup.ClearValue(Popup.PlacementProperty); 204popup.ClearValue(Popup.VerticalOffsetProperty); 205popup.ClearValue(Popup.HorizontalOffsetProperty); 209public static Size GetMinDropDownSize(RibbonMenuItemsPanel itemsHost, Popup popup, Thickness borderThickness)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
44[TemplatePart(Name = RibbonGroup.PopupTemplatePartName, Type = typeof(Popup))] 125_collapsedGroupPopup = GetTemplateChild(PopupTemplatePartName) as Popup; 1362private Popup _collapsedGroupPopup;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (14)
147internal static void FindAndHookPopup(DependencyObject element, ref Popup popup) 156popup = LogicalTreeHelper.GetParent(rootVisual) as Popup; 171RibbonHelper.UpdatePopupAnimation((Popup)sender); 174private static void UpdatePopupAnimation(Popup popup) 1308public static UIElement TryGetChild(this Popup popup) 2384Popup popup = menuItem.Popup; 2391BindingOperations.SetBinding(popup, Popup.PlacementTargetProperty, binding); 2397BindingOperations.SetBinding(popup, Popup.WidthProperty, binding); 2403BindingOperations.SetBinding(popup, Popup.HeightProperty, binding); 2410Popup popup = menuItem.Popup; 2413popup.ClearValue(Popup.PlacementTargetProperty); 2414popup.ClearValue(Popup.WidthProperty); 2415popup.ClearValue(Popup.HeightProperty); 2874TreeHelper.InvalidateMeasureForVisualAncestorPath<Popup>(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (4)
37[TemplatePart(Name = RibbonMenuButton.PopupTemplatePartName, Type = typeof(Popup))] 696_popup = GetTemplateChild(PopupTemplatePartName) as Popup; 1299internal Popup Popup 1325private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (4)
36[TemplatePart(Name = RibbonMenuItem.PopupTemplatePartName, Type = typeof(Popup))] 642_popup = GetTemplateChild(PopupTemplatePartName) as Popup; 1032internal Popup Popup 1579private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (3)
35[TemplatePart(Name = OverflowPopupTemplatePartName, Type = typeof(Popup))] 48private Popup _overflowPopup; // The Popup that hosts the overflow panel. 296_overflowPopup = GetTemplateChild(OverflowPopupTemplatePartName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (3)
301Popup popupParent = LogicalTreeHelper.GetParent(element) as Popup; 430private Popup _popup;