Dynamo.Controls.DynamoView.PlacePopup C# (CSharp) Method

PlacePopup() public method

public PlacePopup ( 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[]
        public CustomPopupPlacement[] PlacePopup(Size popupSize, Size targetSize, Point offset)
        {
            Point popupLocation = new Point(targetSize.Width - popupSize.Width, targetSize.Height);

            CustomPopupPlacement placement1 =
                new CustomPopupPlacement(popupLocation, PopupPrimaryAxis.Vertical);

            CustomPopupPlacement placement2 =
                new CustomPopupPlacement(popupLocation, PopupPrimaryAxis.Horizontal);

            CustomPopupPlacement[] ttplaces =
                new CustomPopupPlacement[] { placement1, placement2 };
            return ttplaces;
        }
DynamoView