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