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