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