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