14 instantiations of CustomPopupPlacement
PresentationFramework (4)
System\Windows\Controls\Slider.cs (4)
915return new CustomPopupPlacement[]{new CustomPopupPlacement( 924new CustomPopupPlacement( 935new CustomPopupPlacement( 944new CustomPopupPlacement(
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1347logicalRightPosition = new CustomPopupPlacement(new Point(targetSize.Width, offset.Y), PopupPrimaryAxis.Vertical); 1348logicalLeftPosition = new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1352logicalRightPosition = new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1353logicalLeftPosition = new CustomPopupPlacement(new Point(- popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1367return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width, -topEdge), PopupPrimaryAxis.Vertical) }; 1372return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1380return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1385return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (2)
418CustomPopupPlacement placementPreffered = new CustomPopupPlacement(new Point(offsetX, belowOffsetY), PopupPrimaryAxis.Horizontal); 421CustomPopupPlacement placementFallback = new CustomPopupPlacement(new Point(offsetX, aboveOffsetY), PopupPrimaryAxis.Horizontal);
25 references to CustomPopupPlacement
PresentationFramework (13)
System\Windows\Controls\Primitives\CustomPopupPlacement.cs (5)
61public static bool operator==(CustomPopupPlacement placement1, CustomPopupPlacement placement2) 72public static bool operator !=(CustomPopupPlacement placement1, CustomPopupPlacement placement2) 84if (o is CustomPopupPlacement placement)
System\Windows\Controls\Primitives\CustomPopupPlacementCallback.cs (1)
19public delegate CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
System\Windows\Controls\Primitives\Popup.cs (1)
2032CustomPopupPlacement[] customPlacements = null;
System\Windows\Controls\Slider.cs (6)
907private CustomPopupPlacement[] AutoToolTipCustomPlacementCallback(Size popupSize, Size targetSize, Point offset) 915return new CustomPopupPlacement[]{new CustomPopupPlacement( 923return new CustomPopupPlacement[] { 934return new CustomPopupPlacement[] { 943return new CustomPopupPlacement[] { 951return new CustomPopupPlacement[]{};
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1329private CustomPopupPlacement[] PlacePopup(Size popupSize, Size targetSize, Point offset) 1343CustomPopupPlacement logicalRightPosition; 1344CustomPopupPlacement logicalLeftPosition; 1356return new CustomPopupPlacement[] { logicalRightPosition, logicalLeftPosition }; 1367return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width, -topEdge), PopupPrimaryAxis.Vertical) }; 1372return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1380return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1385return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
336private CustomPopupPlacement[] PlaceRibbonToolTip(Size popupSize, Size targetSize, Point offset) 418CustomPopupPlacement placementPreffered = new CustomPopupPlacement(new Point(offsetX, belowOffsetY), PopupPrimaryAxis.Horizontal); 421CustomPopupPlacement placementFallback = new CustomPopupPlacement(new Point(offsetX, aboveOffsetY), PopupPrimaryAxis.Horizontal); 423return new CustomPopupPlacement[] { placementPreffered, placementFallback };