menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IPopupHost - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IPopupHost

    Defines an interface that a PopupHost can take and parent itself to.

    Inherited Members
    IKeyboardHook.KeyboardHookProc(Int32, Int32)
    IKeyboardMessage.KeyboardMessage(Message)
    IMouseHook.MouseHook(Int32, Point, IntPtr, Int32, Int32)
    IMouseMoveMessage.MouseMoveMessage(Message)
    IPopup.GetPopupParentControl()
    IPopup.IsRelatedControl(Control, Boolean)
    IPopupChild.Hide(PopupCloseAction)
    IPopupChild.IsShowing()
    IPopupChild.PopupParent
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved