4 instantiations of Popup
PresentationFramework (4)
System\Windows\Controls\ContextMenu.cs (1)
483
_parentPopup = new
Popup
System\Windows\Controls\ToolTip.cs (1)
502
_parentPopup = new
Popup
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8707
DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.
Popup
(); },
System\Windows\Markup\KnownTypes.cs (1)
1470
case KnownElements.Popup: o = new System.Windows.Controls.Primitives.
Popup
(); break;
179 references to Popup
PresentationFramework (131)
System\Windows\Controls\ComboBox.cs (3)
28
[TemplatePart(Name = "PART_Popup", Type = typeof(
Popup
))]
1632
_dropDownPopup = GetTemplateChild(PopupTemplateName) as
Popup
;
2013
private
Popup
_dropDownPopup;
System\Windows\Controls\ContextMenu.cs (8)
125
Popup
.IsOpenProperty.AddOwner(
272
Popup
.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ContextMenu));
291
Popup
.StaysOpenProperty.AddOwner(typeof(ContextMenu));
499
_parentPopup.SetResourceReference(
Popup
.PopupAnimationProperty, SystemParameters.MenuPopupAnimationKey);
503
Popup
.CreateRootPopup(_parentPopup, this);
677
if (!
Popup
.IsRootedInPopup(_parentPopup, this))
687
if (!
Popup
.IsRootedInPopup(_parentPopup, this))
697
private
Popup
_parentPopup;
System\Windows\Controls\DatePicker.cs (5)
25
[TemplatePart(Name = DatePicker.ElementPopup, Type = typeof(
Popup
))]
42
private
Popup
_popUp;
679
_popUp = GetTemplateChild(ElementPopup) as
Popup
;
890
Popup
popup = sender as
Popup
;
System\Windows\Controls\MenuItem.cs (3)
60
[TemplatePart(Name = "PART_Popup", Type = typeof(
Popup
))]
2165
_submenuPopup = GetTemplateChild(PopupTemplateName) as
Popup
;
2697
private
Popup
_submenuPopup;
System\Windows\Controls\PopupControlService.cs (1)
600
Interval =
Popup
.AnimationDelayTime
System\Windows\Controls\Primitives\MenuBase.cs (2)
407
Popup
popup = popupRoot.Parent as
Popup
;
System\Windows\Controls\Primitives\Popup.cs (67)
49
EventManager.RegisterClassHandler(typeof(
Popup
), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture));
50
EventManager.RegisterClassHandler(typeof(
Popup
), DragDrop.DragDropStartedEvent, new RoutedEventHandler(OnDragDropStarted), true);
51
EventManager.RegisterClassHandler(typeof(
Popup
), DragDrop.DragDropCompletedEvent, new RoutedEventHandler(OnDragDropCompleted), true);
53
VisibilityProperty.OverrideMetadata(typeof(
Popup
), new FrameworkPropertyMetadata(VisibilityBoxes.CollapsedBox, null, new CoerceValueCallback(CoerceVisibility)));
84
typeof(
Popup
),
108
typeof(
Popup
),
125
Popup
popup = (
Popup
)d;
150
internal static readonly UncommonField<List<
Popup
>> RegisteredPopupsField = new UncommonField<List<
Popup
>>();
175
private static void RegisterPopupWithPlacementTarget(
Popup
popup, UIElement placementTarget)
186
List<
Popup
> registeredPopups = RegisteredPopupsField.GetValue(placementTarget);
189
registeredPopups = new List<
Popup
>()
206
private static void UnregisterPopupFromPlacementTarget(
Popup
popup, UIElement placementTarget)
211
List<
Popup
> registeredPopups = RegisteredPopupsField.GetValue(placementTarget);
284
typeof(
Popup
),
305
Popup
popup = (
Popup
)d;
339
Popup
popup = (
Popup
)d;
423
((
Popup
)sender).SetCurrentValueInternal(IsOpenProperty, BooleanBoxes.FalseBox);
436
typeof(
Popup
),
477
Popup
popup = (
Popup
) d;
508
typeof(
Popup
),
530
typeof(
Popup
),
550
Popup
popup = (
Popup
)d;
574
typeof(
Popup
),
596
Popup
popup = (
Popup
) d;
610
typeof(
Popup
),
635
typeof(
Popup
),
658
Popup
ctrl = (
Popup
) d;
679
typeof(
Popup
),
720
Popup
popup = popupRoot.Parent as
Popup
;
760
typeof(
Popup
),
780
return ((
Popup
)o).AllowsTransparency ? value : PopupAnimation.None;
796
Window.AllowsTransparencyProperty.AddOwner(typeof(
Popup
),
818
return ((
Popup
)d)._secHelper.IsChildPopup ? BooleanBoxes.FalseBox : value;
826
typeof(
Popup
),
849
return BooleanBoxes.Box(SystemParameters.DropShadow && ((
Popup
)d).AllowsTransparency);
868
public static void CreateRootPopup(
Popup
popup, UIElement child)
880
internal static void CreateRootPopupInternal(
Popup
popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty)
979
internal static bool IsRootedInPopup(
Popup
parentPopup, UIElement element)
1197
Popup
parentPopup = parentPopupRoot.Parent as
Popup
;
1212
Popup
popup = sender as
Popup
;
1244
Popup
newPopup = (newRoot == null) ? null : newRoot.Parent as
Popup
;
1264
Popup
popup = (
Popup
)sender;
1270
Popup
popup = (
Popup
)sender;
1398
internal PopupModelTreeEnumerator(
Popup
popup, object child)
1415
private
Popup
_popup;
1462
Popup
popup = (
Popup
)arg;
3274
Popup
popup = dependencyObject as
Popup
;
3533
private static NativeMethods.POINT? GetPlacementTargetOriginInScreenCoordinates(
Popup
popup)
3538
var rootVisual =
Popup
.GetRootVisual(target);
3539
var targetToClientTransform =
Popup
.TransformToClient(target, rootVisual);
3557
internal static NativeMethods.POINT GetPlacementOrigin(
Popup
popup)
System\Windows\Controls\Primitives\PopupRoot.cs (6)
142
Popup
popup = Parent as
Popup
;
215
private Size GetPopupSizeRestrictions(
Popup
popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight)
218
restrictWidth = Math.Abs(restrictedSize.Width - desiredSize.Width) >
Popup
.Tolerance;
219
restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) >
Popup
.Tolerance;
248
internal void SetupLayoutBindings(
Popup
popup)
System\Windows\Controls\Slider.cs (2)
832
((
Popup
)_autoToolTip.Parent).Reposition();
871
((
Popup
)_autoToolTip.Parent).Reposition();
System\Windows\Controls\ToolTip.cs (7)
297
Popup
.CustomPopupPlacementCallbackProperty.AddOwner(typeof(ToolTip));
316
Popup
.StaysOpenProperty.AddOwner(typeof(ToolTip));
454
if (!
Popup
.IsRootedInPopup(_parentPopup, this))
464
if (!
Popup
.IsRootedInPopup(_parentPopup, this))
520
_parentPopup.SetResourceReference(
Popup
.PopupAnimationProperty, SystemParameters.ToolTipPopupAnimationKey);
524
Popup
.CreateRootPopupInternal(_parentPopup, this, true);
580
private
Popup
_parentPopup;
System\Windows\DescendentsWalker.cs (6)
232
List<
Popup
> registeredPopups =
Popup
.RegisteredPopupsField.GetValue(feParent);
236
foreach (
Popup
p in registeredPopups)
336
List<
Popup
> registeredPopups =
Popup
.RegisteredPopupsField.GetValue(feParent);
340
foreach (
Popup
p in registeredPopups)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
579
case 485: t = () => typeof(
Popup
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
3330
Type type = typeof(System.Windows.Controls.Primitives.
Popup
);
3331
DependencyProperty dp = System.Windows.Controls.Primitives.
Popup
.ChildProperty;
3333
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
Popup
)), // DeclaringType
3346
Type type = typeof(System.Windows.Controls.Primitives.
Popup
);
3347
DependencyProperty dp = System.Windows.Controls.Primitives.
Popup
.IsOpenProperty;
3349
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
Popup
)), // DeclaringType
3365
Type type = typeof(System.Windows.Controls.Primitives.
Popup
);
3366
DependencyProperty dp = System.Windows.Controls.Primitives.
Popup
.PlacementProperty;
3368
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
Popup
)), // DeclaringType
3384
Type type = typeof(System.Windows.Controls.Primitives.
Popup
);
3385
DependencyProperty dp = System.Windows.Controls.Primitives.
Popup
.PopupAnimationProperty;
3387
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
Popup
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8704
typeof(System.Windows.Controls.Primitives.
Popup
),
System\Windows\Markup\KnownTypes.cs (5)
1854
return System.Windows.Controls.Primitives.
Popup
.ChildProperty;
1856
return System.Windows.Controls.Primitives.
Popup
.IsOpenProperty;
1858
return System.Windows.Controls.Primitives.
Popup
.PlacementProperty;
1860
return System.Windows.Controls.Primitives.
Popup
.PopupAnimationProperty;
6033
case KnownElements.Popup: t = typeof(System.Windows.Controls.Primitives.
Popup
); break;
System\Windows\SystemResources.cs (1)
1261
popupRoot.Parent.CoerceValue(
Popup
.HasDropShadowProperty);
System\Windows\TreeWalkHelper.cs (1)
1271
(
Popup
.RegisteredPopupsField.GetValue(fe) != null)
System.Windows.Controls.Ribbon (48)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
50
[TemplatePart(Name = Ribbon.ItemsPresenterPopupTemplateName, Type = typeof(
Popup
))]
58
private
Popup
_itemsPresenterPopup; // The Popup containing Ribbon's ItemsPresenter.
720
internal
Popup
ItemsPresenterPopup
740
_itemsPresenterPopup = this.GetTemplateChild(ItemsPresenterPopupTemplateName) as
Popup
;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
30
[TemplatePart(Name = RibbonApplicationMenu.PopupTemplateName, Type = typeof(
Popup
))]
42
private
Popup
_popup;
300
_popup = this.GetTemplateChild(PopupTemplateName) as
Popup
;
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (4)
83
Popup
ancestorPopup = TreeHelper.FindAncestor(dismissPopupSource, delegate(DependencyObject element) { return (element is
Popup
); }) as
Popup
;
642
private
Popup
_popup;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (6)
158
public static Rect GetScreenBounds(FrameworkElement targetElement,
Popup
popup)
195
public static void ClearLocalValues(FrameworkElement itemsPresenter,
Popup
popup)
204
popup.ClearValue(
Popup
.PlacementProperty);
205
popup.ClearValue(
Popup
.VerticalOffsetProperty);
206
popup.ClearValue(
Popup
.HorizontalOffsetProperty);
210
public static Size GetMinDropDownSize(RibbonMenuItemsPanel itemsHost,
Popup
popup, Thickness borderThickness)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
45
[TemplatePart(Name = RibbonGroup.PopupTemplatePartName, Type = typeof(
Popup
))]
126
_collapsedGroupPopup = GetTemplateChild(PopupTemplatePartName) as
Popup
;
1363
private
Popup
_collapsedGroupPopup;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (14)
148
internal static void FindAndHookPopup(DependencyObject element, ref
Popup
popup)
157
popup = LogicalTreeHelper.GetParent(rootVisual) as
Popup
;
172
RibbonHelper.UpdatePopupAnimation((
Popup
)sender);
175
private static void UpdatePopupAnimation(
Popup
popup)
1309
public static UIElement TryGetChild(this
Popup
popup)
2385
Popup
popup = menuItem.Popup;
2392
BindingOperations.SetBinding(popup,
Popup
.PlacementTargetProperty, binding);
2398
BindingOperations.SetBinding(popup,
Popup
.WidthProperty, binding);
2404
BindingOperations.SetBinding(popup,
Popup
.HeightProperty, binding);
2411
Popup
popup = menuItem.Popup;
2414
popup.ClearValue(
Popup
.PlacementTargetProperty);
2415
popup.ClearValue(
Popup
.WidthProperty);
2416
popup.ClearValue(
Popup
.HeightProperty);
2875
TreeHelper.InvalidateMeasureForVisualAncestorPath<
Popup
>(itemsPresenter);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (4)
38
[TemplatePart(Name = RibbonMenuButton.PopupTemplatePartName, Type = typeof(
Popup
))]
697
_popup = GetTemplateChild(PopupTemplatePartName) as
Popup
;
1300
internal
Popup
Popup
1326
private
Popup
_popup;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (4)
37
[TemplatePart(Name = RibbonMenuItem.PopupTemplatePartName, Type = typeof(
Popup
))]
643
_popup = GetTemplateChild(PopupTemplatePartName) as
Popup
;
1033
internal
Popup
Popup
1581
private
Popup
_popup;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (3)
36
[TemplatePart(Name = OverflowPopupTemplatePartName, Type = typeof(
Popup
))]
49
private
Popup
_overflowPopup; // The Popup that hosts the overflow panel.
297
_overflowPopup = GetTemplateChild(OverflowPopupTemplatePartName) as
Popup
;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (3)
302
Popup
popupParent = LogicalTreeHelper.GetParent(element) as
Popup
;
431
private
Popup
_popup;