34 references to PopupPrimaryAxis
PresentationFramework (24)
System\Windows\Controls\Primitives\CustomPopupPlacement.cs (3)
19
public CustomPopupPlacement(Point point,
PopupPrimaryAxis
primaryAxis)
44
public
PopupPrimaryAxis
PrimaryAxis
105
private
PopupPrimaryAxis
_primaryAxis;
System\Windows\Controls\Primitives\Popup.cs (17)
2022
PopupPrimaryAxis
bestAxis =
PopupPrimaryAxis
.None;
2055
PopupPrimaryAxis
axis;
2234
PopupPrimaryAxis
nudgeAxis = GetPrimaryAxis(placement);
2238
if (nudgeAxis ==
PopupPrimaryAxis
.Horizontal)
2260
else if (nudgeAxis ==
PopupPrimaryAxis
.Vertical)
2496
private PointCombination GetPointCombination(PlacementMode placement, int i, out
PopupPrimaryAxis
axis)
2506
axis =
PopupPrimaryAxis
.Horizontal;
2521
axis =
PopupPrimaryAxis
.Horizontal;
2537
axis =
PopupPrimaryAxis
.Vertical;
2561
axis =
PopupPrimaryAxis
.Horizontal;
2579
axis =
PopupPrimaryAxis
.None;
2585
axis =
PopupPrimaryAxis
.None;
2593
private static
PopupPrimaryAxis
GetPrimaryAxis(PlacementMode placement)
2599
return
PopupPrimaryAxis
.Vertical;
2605
return
PopupPrimaryAxis
.Horizontal;
2614
return
PopupPrimaryAxis
.None;
System\Windows\Controls\Slider.cs (4)
944
PopupPrimaryAxis
.Horizontal)
953
PopupPrimaryAxis
.Vertical)
964
PopupPrimaryAxis
.Horizontal)
973
PopupPrimaryAxis
.Vertical)
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);