14 instantiations of CustomPopupPlacement
PresentationFramework (4)
System\Windows\Controls\Slider.cs (4)
911
return new CustomPopupPlacement[]{new
CustomPopupPlacement
(
920
new
CustomPopupPlacement
(
931
new
CustomPopupPlacement
(
940
new
CustomPopupPlacement
(
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1340
logicalRightPosition = new
CustomPopupPlacement
(new Point(targetSize.Width, offset.Y), PopupPrimaryAxis.Vertical);
1341
logicalLeftPosition = new
CustomPopupPlacement
(new Point(-popupSize.Width - popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical);
1345
logicalRightPosition = new
CustomPopupPlacement
(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical);
1346
logicalLeftPosition = new
CustomPopupPlacement
(new Point(- popupChildMargin, offset.Y), PopupPrimaryAxis.Vertical);
1360
return new CustomPopupPlacement[] { new
CustomPopupPlacement
(new Point(targetSize.Width, -topEdge), PopupPrimaryAxis.Vertical) };
1365
return new CustomPopupPlacement[] { new
CustomPopupPlacement
(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
1373
return new CustomPopupPlacement[] { new
CustomPopupPlacement
(new Point(-popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
1378
return new CustomPopupPlacement[] { new
CustomPopupPlacement
(new Point(-popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (2)
417
CustomPopupPlacement placementPreffered = new
CustomPopupPlacement
(new Point(offsetX, belowOffsetY), PopupPrimaryAxis.Horizontal);
420
CustomPopupPlacement placementFallback = new
CustomPopupPlacement
(new Point(offsetX, aboveOffsetY), PopupPrimaryAxis.Horizontal);
25 references to CustomPopupPlacement
PresentationFramework (13)
System\Windows\Controls\Primitives\CustomPopupPlacement.cs (5)
60
public static bool operator==(
CustomPopupPlacement
placement1,
CustomPopupPlacement
placement2)
71
public static bool operator !=(
CustomPopupPlacement
placement1,
CustomPopupPlacement
placement2)
83
if (o is
CustomPopupPlacement
placement)
System\Windows\Controls\Primitives\CustomPopupPlacementCallback.cs (1)
18
public delegate
CustomPopupPlacement
[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
System\Windows\Controls\Primitives\Popup.cs (1)
2031
CustomPopupPlacement
[] customPlacements = null;
System\Windows\Controls\Slider.cs (6)
903
private
CustomPopupPlacement
[] AutoToolTipCustomPlacementCallback(Size popupSize, Size targetSize, Point offset)
911
return new
CustomPopupPlacement
[]{new CustomPopupPlacement(
919
return new
CustomPopupPlacement
[] {
930
return new
CustomPopupPlacement
[] {
939
return new
CustomPopupPlacement
[] {
947
return Array.Empty<
CustomPopupPlacement
>();
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1322
private
CustomPopupPlacement
[] PlacePopup(Size popupSize, Size targetSize, Point offset)
1336
CustomPopupPlacement
logicalRightPosition;
1337
CustomPopupPlacement
logicalLeftPosition;
1349
return new
CustomPopupPlacement
[] { logicalRightPosition, logicalLeftPosition };
1360
return new
CustomPopupPlacement
[] { new CustomPopupPlacement(new Point(targetSize.Width, -topEdge), PopupPrimaryAxis.Vertical) };
1365
return new
CustomPopupPlacement
[] { new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
1373
return new
CustomPopupPlacement
[] { new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
1378
return new
CustomPopupPlacement
[] { new CustomPopupPlacement(new Point(-popupChildMargin, -topEdge), PopupPrimaryAxis.Vertical) };
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
335
private
CustomPopupPlacement
[] PlaceRibbonToolTip(Size popupSize, Size targetSize, Point offset)
417
CustomPopupPlacement
placementPreffered = new CustomPopupPlacement(new Point(offsetX, belowOffsetY), PopupPrimaryAxis.Horizontal);
420
CustomPopupPlacement
placementFallback = new CustomPopupPlacement(new Point(offsetX, aboveOffsetY), PopupPrimaryAxis.Horizontal);
422
return new
CustomPopupPlacement
[] { placementPreffered, placementFallback };