AcManager.UserControls.RaceGridEditorColumn.CustomPopupPlacementCallback C# (CSharp) Method

CustomPopupPlacementCallback() private static method

private static CustomPopupPlacementCallback ( Size popupSize, Size targetSize, Point offset ) : System.Windows.Controls.Primitives.CustomPopupPlacement[]
popupSize System.Windows.Size
targetSize System.Windows.Size
offset Point
return System.Windows.Controls.Primitives.CustomPopupPlacement[]
        private static CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset) {
            return new [] {
                new CustomPopupPlacement {
                    Point = new Point(targetSize.Width - 12, -targetSize.Height - 200),
                    PrimaryAxis = PopupPrimaryAxis.Vertical
                },
                new CustomPopupPlacement {
                    Point = new Point(-popupSize.Width, -targetSize.Height - 200),
                    PrimaryAxis = PopupPrimaryAxis.Vertical
                },
            };
        }