Hi Michael,
Please refer to the PopupsInDepth sample in the directory ...\Syncfusion\Essential Suite\2.0.5.1\Tools\Samples\Editors Package\PopupControlContainer\Advanced\PopupsInDepth. This shows how a PopupMenu can be displayed at a desired position and with a desired alignment. I have modified the sample to show the PopupMenu on top of the source control. Please refer to the code in GetLocationForPopupAlignment method.
public Point GetLocationForPopupAlignment(PopupRelativeAlignment prevAlignment,
out PopupRelativeAlignment newAlignment)
{
Rectangle bounds = this.Bounds;
// This utility method takes a rectangle and returns the 8 positions around
// it 1 at a time. It will start with the alignment specified in the 3rd argument.
Point pos = PopupUtils.ComputeDefaultPopupAlignment(prevAlignment, out newAlignment,
PopupRelativeAlignment.TopLeft, PopupRelativeAlignment.TopLeft, bounds);
return this.Parent.PointToScreen(pos);
}
I have attached the
modified sample here. Let me know if you need further assistance. We appreciate your continued interest in Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.