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