Class PopupHostBase
The top level form-derived class that hosts a Syncfusion.WinForms.Core.PopupHostBase.PopupControlContainer when it is dropped-down.
Inheritance
Namespace: Syncfusion.WinForms.Core
Assembly: Syncfusion.Core.WinForms.dll
Syntax
public class PopupHostBase : Form
Remarks
You will normally not have to use this class or refer to an instance of this class. An instance of this class will be automatically generated by the Syncfusion.WinForms.Core.PopupHostBase.PopupControlContainer which will then set this as its parent when ShowPopup(Point) is called on it.
However, you can for example access an instance of this class from the PopupControlContainer and change certain properties.
You can include a shadow in your popups by setting the NeedShadow property.
Constructors
PopupHostBase()
Initializes a new instance of the PopupHostBase class.
Declaration
public PopupHostBase()
Properties
CreateParams
Overrides the create parameters.
Declaration
protected override CreateParams CreateParams { get; }
Property Value
Type |
---|
System.Windows.Forms.CreateParams |
Methods
AdjustLocationForAlignment(ref Point, PopupRelativeAlignment)
Adjust the location based on the alignment.
Declaration
protected void AdjustLocationForAlignment(ref Point loc, PopupRelativeAlignment align)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | loc | The location. |
PopupRelativeAlignment | align | The alignment. |
AttachPopup()
Attaches the popup.
Declaration
protected virtual void AttachPopup()
ComputeControlLocation()
Compute the control location.
Declaration
protected virtual void ComputeControlLocation()
ComputeLocation()
Compute the location.
Declaration
protected virtual void ComputeLocation()
ComputeSize()
Compute the size.
Declaration
protected virtual void ComputeSize()
DetachPopup()
Releases the popup.
Declaration
protected virtual void DetachPopup()
Dispose(Boolean)
Releases the unmanaged resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | The boolean value. |
GetAdjustedLocation(Point)
Get the adjusted location.
Declaration
protected virtual Point GetAdjustedLocation(Point loc)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | loc | The location. |
Returns
Type | Description |
---|---|
System.Drawing.Point | Returns the location. |
GetIsMirrored()
Checks the right to left mode.
Declaration
protected bool GetIsMirrored()
Returns
Type | Description |
---|---|
System.Boolean | Return true if right to left mode. |
HidePopup()
Hides the popup.
Declaration
public virtual void HidePopup()
IsShowing()
Checks whether the popup is shown or not.
Declaration
public bool IsShowing()
Returns
Type | Description |
---|---|
System.Boolean | Returns the boolean value. |
OnDeactivate(EventArgs)
Occurs when deactivate the host.
Declaration
protected override void OnDeactivate(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The event arguments |
OnHandleCreated(EventArgs)
Occurs while handle is created.
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The event arguments |
OnLocationChanged(EventArgs)
Occurs when location changed.
Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The event arguments. |
OnPaint(PaintEventArgs)
Overridden. See System.Windows.Forms.Control.OnPaint.
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | The paint event argument. |
OnSizeChanged(EventArgs)
Overridden. See System.Windows.Forms.Control.OnSizeChanged.
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The event arguments |
OnVisibleChanged(EventArgs)
Overridden. See System.Windows.Forms.Control.OnVisibleChanged.
Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The event argument. |
ResumeLayout(Boolean)
Resume the layout operation.
Declaration
public void ResumeLayout(bool preformLayout)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | preformLayout | The boolean value. |
Show()
Shows the popup.
Declaration
public virtual void Show()
SuspendLayout()
Suspend layout operation.
Declaration
public void SuspendLayout()
UpdateVisibility()
Updates popup host visibility and z-order.
Declaration
protected void UpdateVisibility()
WndProc(ref Message)
Overridden. See System.Windows.Forms.Control.WndProc.
Declaration
protected override void WndProc(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m | The message. |