1 type derived from Popup
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Controls\WorkaroundPopup.cs (1)
24internal class WorkaroundPopup : Popup
4 instantiations of Popup
PresentationFramework (4)
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
495_parentPopup = new Popup();
src\Framework\System\Windows\Controls\ToolTip.cs (1)
509_parentPopup = new Popup();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7888bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.Popup(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1477case KnownElements.Popup: o = new System.Windows.Controls.Primitives.Popup(); break;
142 references to Popup
PresentationFramework (131)
src\Framework\System\Windows\Controls\ComboBox.cs (3)
39[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))] 1647_dropDownPopup = GetTemplateChild(PopupTemplateName) as Popup; 2039private Popup _dropDownPopup;
src\Framework\System\Windows\Controls\ContextMenu.cs (8)
137Popup.IsOpenProperty.AddOwner( 284Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ContextMenu)); 303Popup.StaysOpenProperty.AddOwner(typeof(ContextMenu)); 510_parentPopup.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.MenuPopupAnimationKey); 514Popup.CreateRootPopup(_parentPopup, this); 688if (!Popup.IsRootedInPopup(_parentPopup, this)) 698if (!Popup.IsRootedInPopup(_parentPopup, this)) 708private Popup _parentPopup;
src\Framework\System\Windows\Controls\DatePicker.cs (5)
30[TemplatePart(Name = DatePicker.ElementPopup, Type = typeof(Popup))] 47private Popup _popUp; 672_popUp = GetTemplateChild(ElementPopup) as Popup; 886Popup popup = sender as Popup;
src\Framework\System\Windows\Controls\MenuItem.cs (3)
72[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))] 2229_submenuPopup = GetTemplateChild(PopupTemplateName) as Popup; 2775private Popup _submenuPopup;
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
587_forceCloseTimer.Interval = Popup.AnimationDelayTime;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
418Popup popup = popupRoot.Parent as Popup;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (67)
61EventManager.RegisterClassHandler(typeof(Popup), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 62EventManager.RegisterClassHandler(typeof(Popup), DragDrop.DragDropStartedEvent, new RoutedEventHandler(OnDragDropStarted), true); 63EventManager.RegisterClassHandler(typeof(Popup), DragDrop.DragDropCompletedEvent, new RoutedEventHandler(OnDragDropCompleted), true); 65VisibilityProperty.OverrideMetadata(typeof(Popup), new FrameworkPropertyMetadata(VisibilityBoxes.CollapsedBox, null, new CoerceValueCallback(CoerceVisibility))); 96typeof(Popup), 120typeof(Popup), 137Popup popup = (Popup)d; 162internal static readonly UncommonField<List<Popup>> RegisteredPopupsField = new UncommonField<List<Popup>>(); 187private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget) 198List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 201registeredPopups = new List<Popup>(); 214private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget) 219List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 293typeof(Popup), 314Popup popup = (Popup)d; 348Popup popup = (Popup)d; 432((Popup)sender).SetCurrentValueInternal(IsOpenProperty, BooleanBoxes.FalseBox); 445typeof(Popup), 486Popup popup = (Popup) d; 517typeof(Popup), 539typeof(Popup), 559Popup popup = (Popup)d; 583typeof(Popup), 605Popup popup = (Popup) d; 619typeof(Popup), 644typeof(Popup), 667Popup ctrl = (Popup) d; 688typeof(Popup), 729Popup popup = popupRoot.Parent as Popup; 769typeof(Popup), 789return ((Popup)o).AllowsTransparency ? value : PopupAnimation.None; 805Window.AllowsTransparencyProperty.AddOwner(typeof(Popup), 827return ((Popup)d)._secHelper.IsChildPopup ? BooleanBoxes.FalseBox : value; 835typeof(Popup), 858return BooleanBoxes.Box(SystemParameters.DropShadow && ((Popup)d).AllowsTransparency); 877public static void CreateRootPopup(Popup popup, UIElement child) 889internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty) 976internal static bool IsRootedInPopup(Popup parentPopup, UIElement element) 1195Popup parentPopup = parentPopupRoot.Parent as Popup; 1213Popup popup = sender as Popup; 1245Popup newPopup = (newRoot == null) ? null : newRoot.Parent as Popup; 1265Popup popup = (Popup)sender; 1271Popup popup = (Popup)sender; 1397internal PopupModelTreeEnumerator(Popup popup, object child) 1414private Popup _popup; 1461Popup popup = (Popup)arg; 3386Popup popup = dependencyObject as Popup; 3745private static NativeMethods.POINTSTRUCT? GetPlacementTargetOriginInScreenCoordinates(Popup popup) 3750var rootVisual = Popup.GetRootVisual(target); 3751var targetToClientTransform = Popup.TransformToClient(target, rootVisual); 3774internal static NativeMethods.POINTSTRUCT GetPlacementOrigin(Popup popup)
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (6)
147Popup popup = Parent as Popup; 220private Size GetPopupSizeRestrictions(Popup popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight) 223restrictWidth = Math.Abs(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance; 224restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance; 254internal void SetupLayoutBindings(Popup popup)
src\Framework\System\Windows\Controls\Slider.cs (2)
862((Popup)_autoToolTip.Parent).Reposition(); 902((Popup)_autoToolTip.Parent).Reposition();
src\Framework\System\Windows\Controls\ToolTip.cs (7)
321Popup.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ToolTip)); 340Popup.StaysOpenProperty.AddOwner(typeof(ToolTip)); 460if (!Popup.IsRootedInPopup(_parentPopup, this)) 470if (!Popup.IsRootedInPopup(_parentPopup, this)) 526_parentPopup.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.ToolTipPopupAnimationKey); 530Popup.CreateRootPopupInternal(_parentPopup, this, true); 575private Popup _parentPopup;
src\Framework\System\Windows\DescendentsWalker.cs (6)
240List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 244foreach (Popup p in registeredPopups) 344List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 348foreach (Popup p in registeredPopups)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
577case 485: t = () => typeof(Popup); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
3206Type type = typeof(System.Windows.Controls.Primitives.Popup); 3207DependencyProperty dp = System.Windows.Controls.Primitives.Popup.ChildProperty; 3209this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3222Type type = typeof(System.Windows.Controls.Primitives.Popup); 3223DependencyProperty dp = System.Windows.Controls.Primitives.Popup.IsOpenProperty; 3225this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3239Type type = typeof(System.Windows.Controls.Primitives.Popup); 3240DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PlacementProperty; 3242this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType 3256Type type = typeof(System.Windows.Controls.Primitives.Popup); 3257DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PopupAnimationProperty; 3259this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7886typeof(System.Windows.Controls.Primitives.Popup),
src\Framework\System\Windows\Markup\KnownTypes.cs (5)
1861return System.Windows.Controls.Primitives.Popup.ChildProperty; 1863return System.Windows.Controls.Primitives.Popup.IsOpenProperty; 1865return System.Windows.Controls.Primitives.Popup.PlacementProperty; 1867return System.Windows.Controls.Primitives.Popup.PopupAnimationProperty; 6029case KnownElements.Popup: t = typeof(System.Windows.Controls.Primitives.Popup); break;
src\Framework\System\Windows\SystemResources.cs (1)
1342popupRoot.Parent.CoerceValue(Popup.HasDropShadowProperty);
src\Framework\System\Windows\TreeWalkHelper.cs (1)
1273(Popup.RegisteredPopupsField.GetValue(fe) != null)
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (5)
30"PopupHost", typeof(Popup), typeof(CategoryContainer), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.Inherits, OnPopupHostChanged)); 183public static Popup GetPopupHost(DependencyObject target) 185return (Popup)target.GetValue(CategoryContainer.PopupHostProperty); 188public static void SetPopupHost(DependencyObject target, Popup value) 350Popup popupHost = CategoryContainer.GetPopupHost(this);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (2)
63EventManager.RegisterClassHandler(typeof(Popup), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandleGotKeyboardFocusEvent), true); 66EventManager.RegisterClassHandler(typeof(Popup), Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandlePreviewGotKeyboardFocus), true);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (4)
453Popup popup = comboBox.Template.FindName("PART_Popup", comboBox) as Popup; 582Popup popup = sender as Popup;