34 references to PopupPrimaryAxis
PresentationFramework (24)
System\Windows\Controls\Primitives\CustomPopupPlacement.cs (3)
17
public CustomPopupPlacement(Point point,
PopupPrimaryAxis
primaryAxis)
42
public
PopupPrimaryAxis
PrimaryAxis
103
private
PopupPrimaryAxis
_primaryAxis;
System\Windows\Controls\Primitives\Popup.cs (17)
2015
PopupPrimaryAxis
bestAxis =
PopupPrimaryAxis
.None;
2048
PopupPrimaryAxis
axis;
2227
PopupPrimaryAxis
nudgeAxis = GetPrimaryAxis(placement);
2231
if (nudgeAxis ==
PopupPrimaryAxis
.Horizontal)
2253
else if (nudgeAxis ==
PopupPrimaryAxis
.Vertical)
2489
private PointCombination GetPointCombination(PlacementMode placement, int i, out
PopupPrimaryAxis
axis)
2499
axis =
PopupPrimaryAxis
.Horizontal;
2514
axis =
PopupPrimaryAxis
.Horizontal;
2530
axis =
PopupPrimaryAxis
.Vertical;
2554
axis =
PopupPrimaryAxis
.Horizontal;
2572
axis =
PopupPrimaryAxis
.None;
2578
axis =
PopupPrimaryAxis
.None;
2586
private static
PopupPrimaryAxis
GetPrimaryAxis(PlacementMode placement)
2592
return
PopupPrimaryAxis
.Vertical;
2598
return
PopupPrimaryAxis
.Horizontal;
2607
return
PopupPrimaryAxis
.None;
System\Windows\Controls\Slider.cs (4)
933
PopupPrimaryAxis
.Horizontal)
942
PopupPrimaryAxis
.Vertical)
953
PopupPrimaryAxis
.Horizontal)
962
PopupPrimaryAxis
.Vertical)
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (8)
1359
logicalRightPosition = new CustomPopupPlacement(new Point(targetSize.Width, offset.Y),
PopupPrimaryAxis
.Vertical);
1360
logicalLeftPosition = new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, offset.Y),
PopupPrimaryAxis
.Vertical);
1364
logicalRightPosition = new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, offset.Y),
PopupPrimaryAxis
.Vertical);
1365
logicalLeftPosition = new CustomPopupPlacement(new Point(- popupChildMargin, offset.Y),
PopupPrimaryAxis
.Vertical);
1379
return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width, -topEdge),
PopupPrimaryAxis
.Vertical) };
1384
return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-targetSize.Width - popupSize.Width - popupChildMargin, -topEdge),
PopupPrimaryAxis
.Vertical) };
1392
return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(-popupSize.Width - popupChildMargin, -topEdge),
PopupPrimaryAxis
.Vertical) };
1397
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);