14 instantiations of CustomPopupPlacement
PresentationFramework (4)
System\Windows\Controls\Slider.cs (4)
914return new CustomPopupPlacement[]{new CustomPopupPlacement( 923new CustomPopupPlacement( 934new CustomPopupPlacement( 943new CustomPopupPlacement(
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1346logicalRightPosition = new CustomPopupPlacement(new Point(targetSize.Width, offset.Y), PopupPrimaryAxis.Vertical); 1347logicalLeftPosition = new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1351logicalRightPosition = new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1352logicalLeftPosition = new CustomPopupPlacement(new Point(- popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1366return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width, -topEdge), PopupPrimaryAxis.Vertical) }; 1371return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1379return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1384return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (2)
417CustomPopupPlacement placementPreffered = new CustomPopupPlacement(new Point(offsetX, belowOffsetY), PopupPrimaryAxis.Horizontal); 420CustomPopupPlacement placementFallback = new CustomPopupPlacement(new Point(offsetX, aboveOffsetY), PopupPrimaryAxis.Horizontal);
25 references to CustomPopupPlacement
PresentationFramework (13)
System\Windows\Controls\Primitives\CustomPopupPlacement.cs (5)
60public static bool operator==(CustomPopupPlacement placement1, CustomPopupPlacement placement2) 71public static bool operator !=(CustomPopupPlacement placement1, CustomPopupPlacement placement2) 83if (o is CustomPopupPlacement placement)
System\Windows\Controls\Primitives\CustomPopupPlacementCallback.cs (1)
18public delegate CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
System\Windows\Controls\Primitives\Popup.cs (1)
2031CustomPopupPlacement[] customPlacements = null;
System\Windows\Controls\Slider.cs (6)
906private CustomPopupPlacement[] AutoToolTipCustomPlacementCallback(Size popupSize, Size targetSize, Point offset) 914return new CustomPopupPlacement[]{new CustomPopupPlacement( 922return new CustomPopupPlacement[] { 933return new CustomPopupPlacement[] { 942return new CustomPopupPlacement[] { 950return Array.Empty<CustomPopupPlacement>();
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1328private CustomPopupPlacement[] PlacePopup(Size popupSize, Size targetSize, Point offset) 1342CustomPopupPlacement logicalRightPosition; 1343CustomPopupPlacement logicalLeftPosition; 1355return new CustomPopupPlacement[] { logicalRightPosition, logicalLeftPosition }; 1366return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width, -topEdge), PopupPrimaryAxis.Vertical) }; 1371return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1379return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1384return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
335private CustomPopupPlacement[] PlaceRibbonToolTip(Size popupSize, Size targetSize, Point offset) 417CustomPopupPlacement placementPreffered = new CustomPopupPlacement(new Point(offsetX, belowOffsetY), PopupPrimaryAxis.Horizontal); 420CustomPopupPlacement placementFallback = new CustomPopupPlacement(new Point(offsetX, aboveOffsetY), PopupPrimaryAxis.Horizontal); 422return new CustomPopupPlacement[] { placementPreffered, placementFallback };