1 write to _parentPopup
PresentationFramework (1)
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
495
_parentPopup
= new Popup();
16 references to _parentPopup
PresentationFramework (16)
src\Framework\System\Windows\Controls\ContextMenu.cs (16)
161
if (ctrl.
_parentPopup
== null)
166
ctrl.
_parentPopup
.Unloaded += new RoutedEventHandler(ctrl.OnPopupUnloaded);
261
if (cm.
_parentPopup
== null || !cm.
_parentPopup
.AllowsTransparency || !SystemParameters.DropShadow)
493
Debug.Assert(
_parentPopup
== null, "_parentPopup should be null");
497
_parentPopup
.AllowsTransparency = true;
502
_parentPopup
.DropOpposite = false;
506
_parentPopup
.Opened += new EventHandler(OnPopupOpened);
507
_parentPopup
.Closed += new EventHandler(OnPopupClosed);
508
_parentPopup
.PopupCouldClose += new EventHandler(OnPopupCouldClose);
510
_parentPopup
.SetResourceReference(Popup.PopupAnimationProperty, SystemParameters.MenuPopupAnimationKey);
514
Popup.CreateRootPopup(
_parentPopup
, this);
556
if (
_parentPopup
!= null)
558
_parentPopup
.Unloaded -= new RoutedEventHandler(OnPopupUnloaded);
688
if (!Popup.IsRootedInPopup(
_parentPopup
, this))
698
if (!Popup.IsRootedInPopup(
_parentPopup
, this))