src\Framework\System\Windows\Controls\Primitives\Popup.cs (84)
1976public PointCombination(InterestPoint targetInterestPoint, InterestPoint childInterestPoint)
1982public InterestPoint TargetInterestPoint;
1983public InterestPoint ChildInterestPoint;
2067popupTranslation = ((Vector)placementTargetInterestPoints[(int)InterestPoint.TopLeft])
2076InterestPoint targetInterestPoint = pointCombination.TargetInterestPoint;
2077InterestPoint childInterestPoint = pointCombination.ChildInterestPoint;
2085animateFromRight = childInterestPoint == InterestPoint.TopRight || childInterestPoint == InterestPoint.BottomRight;
2086animateFromBottom = childInterestPoint == InterestPoint.BottomLeft || childInterestPoint == InterestPoint.BottomRight;
2096screenBounds = GetScreenBounds(targetBounds, placementTargetInterestPoints[(int)InterestPoint.TopLeft]);
2136screenBounds = GetScreenBounds(targetBounds, placementTargetInterestPoints[(int)InterestPoint.TopLeft]);
2145Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft];
2146Point topRight = placementTargetInterestPoints[(int)InterestPoint.TopRight];
2182Point bottomLeft = placementTargetInterestPoints[(int)InterestPoint.BottomLeft];
2238screenBounds = GetScreenBounds(targetBounds, placementTargetInterestPoints[(int)InterestPoint.TopLeft]);
2247Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft];
2248Point bottomLeft = placementTargetInterestPoints[(int)InterestPoint.BottomLeft];
2269Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft];
2270Point topRight = placementTargetInterestPoints[(int)InterestPoint.TopRight];
2401SwapPoints(ref interestPoints[(int)InterestPoint.TopLeft], ref interestPoints[(int)InterestPoint.TopRight]);
2402SwapPoints(ref interestPoints[(int)InterestPoint.BottomLeft], ref interestPoints[(int)InterestPoint.BottomRight]);
2426points[(int)InterestPoint.TopLeft] = rect.TopLeft;
2427points[(int)InterestPoint.TopRight] = rect.TopRight;
2428points[(int)InterestPoint.BottomLeft] = rect.BottomLeft;
2429points[(int)InterestPoint.BottomRight] = rect.BottomRight;
2430points[(int)InterestPoint.Center] = new Point(rect.Left + rect.Width / 2.0,
2515if (i == 0) return new PointCombination(InterestPoint.BottomRight, InterestPoint.TopRight);
2516if (i == 1) return new PointCombination(InterestPoint.TopRight, InterestPoint.BottomRight);
2520if (i == 0) return new PointCombination(InterestPoint.BottomLeft, InterestPoint.TopLeft);
2521if (i == 1) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomLeft);
2530if (i == 0) return new PointCombination(InterestPoint.TopRight, InterestPoint.BottomRight);
2531if (i == 1) return new PointCombination(InterestPoint.BottomRight, InterestPoint.TopRight);
2536if (i == 0) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomLeft);
2537if (i == 1) return new PointCombination(InterestPoint.BottomLeft, InterestPoint.TopLeft);
2551if (i == 0) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);
2552if (i == 1) return new PointCombination(InterestPoint.BottomLeft, InterestPoint.BottomRight);
2553if (i == 2) return new PointCombination(InterestPoint.TopRight, InterestPoint.TopLeft);
2554if (i == 3) return new PointCombination(InterestPoint.BottomRight, InterestPoint.BottomLeft);
2558if (i == 0) return new PointCombination(InterestPoint.TopRight, InterestPoint.TopLeft);
2559if (i == 1) return new PointCombination(InterestPoint.BottomRight, InterestPoint.BottomLeft);
2560if (i == 2) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);
2561if (i == 3) return new PointCombination(InterestPoint.BottomLeft, InterestPoint.BottomRight);
2572if (i == 0) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);
2573if (i == 1) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopLeft);
2574if (i == 2) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomRight);
2575if (i == 3) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomLeft);
2579if (i == 0) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopLeft);
2580if (i == 1) return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);
2581if (i == 2) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomLeft);
2582if (i == 3) return new PointCombination(InterestPoint.TopLeft, InterestPoint.BottomRight);
2588return new PointCombination(InterestPoint.Center, InterestPoint.Center);
2594return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopLeft);
2597return new PointCombination(InterestPoint.TopLeft, InterestPoint.TopRight);