Class Popup
Modified PopupControlContainer that takes a child control and adds a sizable grip so that the window can be sized.
Implements
Inherited Members
Namespace: Syncfusion.WinForms.Core
Assembly: Syncfusion.Core.WinForms.dll
Syntax
public class Popup : PopupBase, IPopupHost, IPopupChild, IKeyboardMessage, IMouseMoveMessage, IMouseHook, IKeyboardHook, IPopupParent, IPopup
Constructors
Popup(Control)
Initializes a new instance of the Popup class.
Declaration
public Popup(Control childControl)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | childControl | The child control |
Properties
ShowButtons
Gets or sets a value indicating whether the button can show or not.
Declaration
public virtual bool ShowButtons { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowGripper
Gets or sets a value indicating whether the gripper can show or not.
Declaration
public virtual bool ShowGripper { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
CreatePopupHost()
Create the popup host.
Declaration
protected override PopupHostBase CreatePopupHost()
Returns
Type | Description |
---|---|
PopupHostBase | Returns the sizable popup host. |
Overrides
Dispose(Boolean)
Disposing the elements.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | The boolean value. |
Overrides
OnMouseDown(MouseEventArgs)
Occurs when mouse down.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | A mouse event arguments |
OnMouseLeave(EventArgs)
Occurs when mouse leave from the control.
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | A event data. |
OnMouseMove(MouseEventArgs)
Occurs while moue moved.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | The mouse event arguments. |
OnMouseUp(MouseEventArgs)
Occurs when mouse up.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | The mouse event arguments |
OnPaint(PaintEventArgs)
Override the paint.
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | The paint event arguments |
Show(Point)
Displays the popup control.
Declaration
public override void Show(Point location)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | location | The location at which the popup's left top position will appear. |