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