4 instantiations of Popup
PresentationFramework (4)
System\Windows\Controls\ContextMenu.cs (1)
491_parentPopup = new Popup();
System\Windows\Controls\ToolTip.cs (1)
516_parentPopup = new Popup();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7892bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.Popup(); };
System\Windows\Markup\KnownTypes.cs (1)
1476case KnownElements.Popup: o = new System.Windows.Controls.Primitives.Popup(); break;
179 references to Popup
PresentationFramework (131)
System\Windows\Controls\ComboBox.cs (3)
38[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))] 1644_dropDownPopup = GetTemplateChild(PopupTemplateName) as Popup; 2031private Popup _dropDownPopup;
System\Windows\Controls\ContextMenu.cs (8)
133Popup.IsOpenProperty.AddOwner( 280Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ContextMenu)); 299Popup.StaysOpenProperty.AddOwner(typeof(ContextMenu)); 506_parentPopup.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.MenuPopupAnimationKey); 510Popup.CreateRootPopup(_parentPopup, this); 684if (!Popup.IsRootedInPopup(_parentPopup, this)) 694if (!Popup.IsRootedInPopup(_parentPopup, this)) 704private Popup _parentPopup;
System\Windows\Controls\DatePicker.cs (5)
29[TemplatePart(Name = DatePicker.ElementPopup, Type = typeof(Popup))] 46private Popup _popUp; 683_popUp = GetTemplateChild(ElementPopup) as Popup; 897Popup popup = sender as Popup;
System\Windows\Controls\MenuItem.cs (3)
70[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))] 2180_submenuPopup = GetTemplateChild(PopupTemplateName) as Popup; 2718private Popup _submenuPopup;
System\Windows\Controls\PopupControlService.cs (1)
606_forceCloseTimer.Interval = Popup.AnimationDelayTime;
System\Windows\Controls\Primitives\MenuBase.cs (2)
416Popup popup = popupRoot.Parent as Popup;
System\Windows\Controls\Primitives\Popup.cs (67)
60EventManager.RegisterClassHandler(typeof(Popup), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 61EventManager.RegisterClassHandler(typeof(Popup), DragDrop.DragDropStartedEvent, new RoutedEventHandler(OnDragDropStarted), true); 62EventManager.RegisterClassHandler(typeof(Popup), DragDrop.DragDropCompletedEvent, new RoutedEventHandler(OnDragDropCompleted), true); 64VisibilityProperty.OverrideMetadata(typeof(Popup), new FrameworkPropertyMetadata(VisibilityBoxes.CollapsedBox, null, new CoerceValueCallback(CoerceVisibility))); 95typeof(Popup), 119typeof(Popup), 136Popup popup = (Popup)d; 161internal static readonly UncommonField<List<Popup>> RegisteredPopupsField = new UncommonField<List<Popup>>(); 186private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget) 197List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 200registeredPopups = new List<Popup>() 217private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget) 222List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 295typeof(Popup), 316Popup popup = (Popup)d; 350Popup popup = (Popup)d; 434((Popup)sender).SetCurrentValueInternal(IsOpenProperty, BooleanBoxes.FalseBox); 447typeof(Popup), 488Popup popup = (Popup) d; 519typeof(Popup), 541typeof(Popup), 561Popup popup = (Popup)d; 585typeof(Popup), 607Popup popup = (Popup) d; 621typeof(Popup), 646typeof(Popup), 669Popup ctrl = (Popup) d; 690typeof(Popup), 731Popup popup = popupRoot.Parent as Popup; 771typeof(Popup), 791return ((Popup)o).AllowsTransparency ? value : PopupAnimation.None; 807Window.AllowsTransparencyProperty.AddOwner(typeof(Popup), 829return ((Popup)d)._secHelper.IsChildPopup ? BooleanBoxes.FalseBox : value; 837typeof(Popup), 860return BooleanBoxes.Box(SystemParameters.DropShadow && ((Popup)d).AllowsTransparency); 879public static void CreateRootPopup(Popup popup, UIElement child) 891internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty) 972internal static bool IsRootedInPopup(Popup parentPopup, UIElement element) 1190Popup parentPopup = parentPopupRoot.Parent as Popup; 1208Popup popup = sender as Popup; 1240Popup newPopup = (newRoot == null) ? null : newRoot.Parent as Popup; 1260Popup popup = (Popup)sender; 1266Popup popup = (Popup)sender; 1392internal PopupModelTreeEnumerator(Popup popup, object child) 1409private Popup _popup; 1456Popup popup = (Popup)arg; 3272Popup popup = dependencyObject as Popup; 3535private static NativeMethods.POINT? GetPlacementTargetOriginInScreenCoordinates(Popup popup) 3540var rootVisual = Popup.GetRootVisual(target); 3541var targetToClientTransform = Popup.TransformToClient(target, rootVisual); 3559internal static NativeMethods.POINT GetPlacementOrigin(Popup popup)
System\Windows\Controls\Primitives\PopupRoot.cs (6)
151Popup popup = Parent as Popup; 224private Size GetPopupSizeRestrictions(Popup popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight) 227restrictWidth = Math.Abs(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance; 228restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance; 257internal void SetupLayoutBindings(Popup popup)
System\Windows\Controls\Slider.cs (2)
859((Popup)_autoToolTip.Parent).Reposition(); 898((Popup)_autoToolTip.Parent).Reposition();
System\Windows\Controls\ToolTip.cs (7)
311Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ToolTip)); 330Popup.StaysOpenProperty.AddOwner(typeof(ToolTip)); 468if (!Popup.IsRootedInPopup(_parentPopup, this)) 478if (!Popup.IsRootedInPopup(_parentPopup, this)) 533_parentPopup.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.ToolTipPopupAnimationKey); 537Popup.CreateRootPopupInternal(_parentPopup, this, true); 596private Popup _parentPopup;
System\Windows\DescendentsWalker.cs (6)
237List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 241foreach (Popup p in registeredPopups) 341List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 345foreach (Popup p in registeredPopups)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
581case 485: t = () => typeof(Popup); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
3214Type type = typeof(System.Windows.Controls.Primitives.Popup); 3215DependencyProperty dp = System.Windows.Controls.Primitives.Popup.ChildProperty; 3217this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3230Type type = typeof(System.Windows.Controls.Primitives.Popup); 3231DependencyProperty dp = System.Windows.Controls.Primitives.Popup.IsOpenProperty; 3233this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3247Type type = typeof(System.Windows.Controls.Primitives.Popup); 3248DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PlacementProperty; 3250this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3264Type type = typeof(System.Windows.Controls.Primitives.Popup); 3265DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PopupAnimationProperty; 3267this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7890typeof(System.Windows.Controls.Primitives.Popup),
System\Windows\Markup\KnownTypes.cs (5)
1860return System.Windows.Controls.Primitives.Popup.ChildProperty; 1862return System.Windows.Controls.Primitives.Popup.IsOpenProperty; 1864return System.Windows.Controls.Primitives.Popup.PlacementProperty; 1866return System.Windows.Controls.Primitives.Popup.PopupAnimationProperty; 6039case KnownElements.Popup: t = typeof(System.Windows.Controls.Primitives.Popup); break;
System\Windows\SystemResources.cs (1)
1284popupRoot.Parent.CoerceValue(Popup.HasDropShadowProperty);
System\Windows\TreeWalkHelper.cs (1)
1278(Popup.RegisteredPopupsField.GetValue(fe) != null)
System.Windows.Controls.Ribbon (48)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
53[TemplatePart(Name = Ribbon.ItemsPresenterPopupTemplateName, Type = typeof(Popup))] 61private Popup _itemsPresenterPopup; // The Popup containing Ribbon's ItemsPresenter. 723internal Popup ItemsPresenterPopup 743_itemsPresenterPopup = this.GetTemplateChild(ItemsPresenterPopupTemplateName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
32[TemplatePart(Name = RibbonApplicationMenu.PopupTemplateName, Type = typeof(Popup))] 44private Popup _popup; 302_popup = this.GetTemplateChild(PopupTemplateName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (4)
85Popup ancestorPopup = TreeHelper.FindAncestor(dismissPopupSource, delegate(DependencyObject element) { return (element is Popup); }) as Popup; 630private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (6)
164public static Rect GetScreenBounds(FrameworkElement targetElement, Popup popup) 200public static void ClearLocalValues(FrameworkElement itemsPresenter, Popup popup) 209popup.ClearValue(Popup.PlacementProperty); 210popup.ClearValue(Popup.VerticalOffsetProperty); 211popup.ClearValue(Popup.HorizontalOffsetProperty); 215public static Size GetMinDropDownSize(RibbonMenuItemsPanel itemsHost, Popup popup, Thickness borderThickness)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
48[TemplatePart(Name = RibbonGroup.PopupTemplatePartName, Type = typeof(Popup))] 129_collapsedGroupPopup = GetTemplateChild(PopupTemplatePartName) as Popup; 1375private Popup _collapsedGroupPopup;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (14)
149internal static void FindAndHookPopup(DependencyObject element, ref Popup popup) 158popup = LogicalTreeHelper.GetParent(rootVisual) as Popup; 173RibbonHelper.UpdatePopupAnimation((Popup)sender); 176private static void UpdatePopupAnimation(Popup popup) 1328public static UIElement TryGetChild(this Popup popup) 2410Popup popup = menuItem.Popup; 2415BindingOperations.SetBinding(popup, Popup.PlacementTargetProperty, binding); 2419BindingOperations.SetBinding(popup, Popup.WidthProperty, binding); 2423BindingOperations.SetBinding(popup, Popup.HeightProperty, binding); 2430Popup popup = menuItem.Popup; 2433popup.ClearValue(Popup.PlacementTargetProperty); 2434popup.ClearValue(Popup.WidthProperty); 2435popup.ClearValue(Popup.HeightProperty); 2894TreeHelper.InvalidateMeasureForVisualAncestorPath<Popup>(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (4)
41[TemplatePart(Name = RibbonMenuButton.PopupTemplatePartName, Type = typeof(Popup))] 700_popup = GetTemplateChild(PopupTemplatePartName) as Popup; 1309internal Popup Popup 1335private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (4)
40[TemplatePart(Name = RibbonMenuItem.PopupTemplatePartName, Type = typeof(Popup))] 646_popup = GetTemplateChild(PopupTemplatePartName) as Popup; 1039internal Popup Popup 1596private Popup _popup;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (3)
41[TemplatePart(Name = OverflowPopupTemplatePartName, Type = typeof(Popup))] 54private Popup _overflowPopup; // The Popup that hosts the overflow panel. 311_overflowPopup = GetTemplateChild(OverflowPopupTemplatePartName) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (3)
305Popup popupParent = LogicalTreeHelper.GetParent(element) as Popup; 434private Popup _popup;