Interface IPopupControlContainer
Defines an interface that a PopupHost can take and parent itself to.
Inherited Members
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public interface IPopupControlContainer : IPopupChild, IPopupItem, INeedKeyboardMessages, INeedMouseMoveMessages, IMouseHookHLProcClient, IKeyboardProcHookClient
Remarks
PopupControlContainer provides a default implementation that should be useful for all practical purposes.
Properties
PopupHost
Gets / sets the PopupHost this container is parented to.
Declaration
PopupHost PopupHost { get; set; }
Property Value
Type | Description |
---|---|
PopupHost | 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 | |
PopupRelativeAlignment | newRelativeAlignment |
Returns
Type |
---|
System.Drawing.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.