14 instantiations of CustomPopupPlacement
PresentationFramework (4)
System\Windows\Controls\Slider.cs (4)
942return new CustomPopupPlacement[]{new CustomPopupPlacement( 951new CustomPopupPlacement( 962new CustomPopupPlacement( 971new CustomPopupPlacement(
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1362logicalRightPosition = new CustomPopupPlacement(new Point(targetSize.Width, offset.Y), PopupPrimaryAxis.Vertical); 1363logicalLeftPosition = new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1367logicalRightPosition = new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1368logicalLeftPosition = new CustomPopupPlacement(new Point(- popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical); 1382return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width, -topEdge), PopupPrimaryAxis.Vertical) }; 1387return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1395return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1400return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (2)
421CustomPopupPlacement placementPreffered = new CustomPopupPlacement(new Point(offsetX, belowOffsetY), PopupPrimaryAxis.Horizontal); 424CustomPopupPlacement placementFallback = new CustomPopupPlacement(new Point(offsetX, aboveOffsetY), PopupPrimaryAxis.Horizontal);
27 references to CustomPopupPlacement
PresentationFramework (15)
System\Windows\Controls\Primitives\CustomPopupPlacement.cs (7)
63public static bool operator==(CustomPopupPlacement placement1, CustomPopupPlacement placement2) 74public static bool operator !=(CustomPopupPlacement placement1, CustomPopupPlacement placement2) 86if (o is CustomPopupPlacement) 88CustomPopupPlacement placement = (CustomPopupPlacement)o;
System\Windows\Controls\Primitives\CustomPopupPlacementCallback.cs (1)
21public delegate CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
System\Windows\Controls\Primitives\Popup.cs (1)
2026CustomPopupPlacement[] customPlacements = null;
System\Windows\Controls\Slider.cs (6)
934private CustomPopupPlacement[] AutoToolTipCustomPlacementCallback(Size popupSize, Size targetSize, Point offset) 942return new CustomPopupPlacement[]{new CustomPopupPlacement( 950return new CustomPopupPlacement[] { 961return new CustomPopupPlacement[] { 970return new CustomPopupPlacement[] { 978return new CustomPopupPlacement[]{};
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1344private CustomPopupPlacement[] PlacePopup(Size popupSize, Size targetSize, Point offset) 1358CustomPopupPlacement logicalRightPosition; 1359CustomPopupPlacement logicalLeftPosition; 1371return new CustomPopupPlacement[] { logicalRightPosition, logicalLeftPosition }; 1382return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width, -topEdge), PopupPrimaryAxis.Vertical) }; 1387return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1395return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) }; 1400return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
339private CustomPopupPlacement[] PlaceRibbonToolTip(Size popupSize, Size targetSize, Point offset) 421CustomPopupPlacement placementPreffered = new CustomPopupPlacement(new Point(offsetX, belowOffsetY), PopupPrimaryAxis.Horizontal); 424CustomPopupPlacement placementFallback = new CustomPopupPlacement(new Point(offsetX, aboveOffsetY), PopupPrimaryAxis.Horizontal); 426return new CustomPopupPlacement[] { placementPreffered, placementFallback };