System\Windows\Controls\Primitives\Popup.cs (84)
1980public PointCombination(InterestPoint targetInterestPoint, InterestPoint childInterestPoint)
1986public InterestPoint TargetInterestPoint;
1987public InterestPoint ChildInterestPoint;
2071popupTranslation = ((Vector)placementTargetInterestPoints[(int)InterestPoint.TopLeft])
2080InterestPoint targetInterestPoint = pointCombination.TargetInterestPoint;
2081InterestPoint childInterestPoint = pointCombination.ChildInterestPoint;
2089animateFromRight = childInterestPoint == InterestPoint.TopRight || childInterestPoint == InterestPoint.BottomRight;
2090animateFromBottom = childInterestPoint == InterestPoint.BottomLeft || childInterestPoint == InterestPoint.BottomRight;
2100screenBounds = GetScreenBounds(targetBounds, placementTargetInterestPoints[(int)InterestPoint.TopLeft]);
2140screenBounds = GetScreenBounds(targetBounds, placementTargetInterestPoints[(int)InterestPoint.TopLeft]);
2148Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft];
2149Point topRight = placementTargetInterestPoints[(int)InterestPoint.TopRight];
2185Point bottomLeft = placementTargetInterestPoints[(int)InterestPoint.BottomLeft];
2241screenBounds = GetScreenBounds(targetBounds, placementTargetInterestPoints[(int)InterestPoint.TopLeft]);
2250Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft];
2251Point bottomLeft = placementTargetInterestPoints[(int)InterestPoint.BottomLeft];
2272Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft];
2273Point topRight = placementTargetInterestPoints[(int)InterestPoint.TopRight];
2404SwapPoints(ref interestPoints[(int)InterestPoint.TopLeft], ref interestPoints[(int)InterestPoint.TopRight]);
2405SwapPoints(ref interestPoints[(int)InterestPoint.BottomLeft], ref interestPoints[(int)InterestPoint.BottomRight]);
2429points[(int)InterestPoint.TopLeft] = rect.TopLeft;
2430points[(int)InterestPoint.TopRight] = rect.TopRight;
2431points[(int)InterestPoint.BottomLeft] = rect.BottomLeft;
2432points[(int)InterestPoint.BottomRight] = rect.BottomRight;
2433points[(int)InterestPoint.Center] = new Point(rect.Left + rect.Width / 2.0,
2518if (i == 0) return new PointCombination(InterestPoint.BottomRight, InterestPoint.TopRight);
2519if (i == 1) return new PointCombination(InterestPoint.TopRight, InterestPoint.BottomRight);
2523if (i == 0) return new PointCombination(InterestPoint.BottomLeft, InterestPoint.TopLeft);
2524if (i == 1) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomLeft);
2533if (i == 0) return new PointCombination(InterestPoint.TopRight, InterestPoint.BottomRight);
2534if (i == 1) return new PointCombination(InterestPoint.BottomRight, InterestPoint.TopRight);
2538if (i == 0) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomLeft);
2539if (i == 1) return new PointCombination(InterestPoint.BottomLeft, InterestPoint.TopLeft);
2552if (i == 0) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);
2553if (i == 1) return new PointCombination(InterestPoint.BottomLeft, InterestPoint.BottomRight);
2554if (i == 2) return new PointCombination(InterestPoint.TopRight, InterestPoint.TopLeft);
2555if (i == 3) return new PointCombination(InterestPoint.BottomRight, InterestPoint.BottomLeft);
2559if (i == 0) return new PointCombination(InterestPoint.TopRight, InterestPoint.TopLeft);
2560if (i == 1) return new PointCombination(InterestPoint.BottomRight, InterestPoint.BottomLeft);
2561if (i == 2) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);
2562if (i == 3) return new PointCombination(InterestPoint.BottomLeft, InterestPoint.BottomRight);
2573if (i == 0) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);
2574if (i == 1) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopLeft);
2575if (i == 2) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomRight);
2576if (i == 3) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomLeft);
2580if (i == 0) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopLeft);
2581if (i == 1) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);
2582if (i == 2) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomLeft);
2583if (i == 3) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomRight);
2589return new PointCombination(InterestPoint.Center, InterestPoint.Center);
2595return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopLeft);
2598return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);