Interface IPopupHost
Defines an interface that a PopupHost can take and parent itself to.
Inherited Members
Namespace: Syncfusion.WinForms.Core.Interfaces
Assembly: Syncfusion.Core.WinForms.dll
Syntax
public interface IPopupHost : IPopupChild, IPopup, IKeyboardMessage, IMouseMoveMessage, IMouseHook, IKeyboardHook
Remarks
PopupBase provides a default implementation that should be useful for all practical purposes.
Properties
PopupHost
Gets or sets the PopupHost this container is parented to.
Declaration
PopupHostBase PopupHost { get; set; }
Property Value
Type | Description |
---|---|
PopupHostBase | An instance of the PopupHost class. |
Remarks
If this is a control, you would set it to be a child of the PopupHost and position it appropriately in the set property.
Methods
GetPreferredLocation(PopupRelativeAlignment, out PopupRelativeAlignment)
Provides the appropriate location to the popup given the alignment preferences.
Declaration
Point GetPreferredLocation(PopupRelativeAlignment prevRelativeAlignment, out PopupRelativeAlignment newRelativeAlignment)
Parameters
Type | Name | Description |
---|---|---|
PopupRelativeAlignment | prevRelativeAlignment | The previous alignment. |
PopupRelativeAlignment | newRelativeAlignment | The new alignment. |
Returns
Type | Description |
---|---|
System.Drawing.Point | Return the point. |
Remarks
This method is usually called to determine whether the open popup should be closed due to some action in a different control. If this different control is a "related" control, the popup framework will not close the popup.