menu

WinForms

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

    Show / Hide Table of Contents

    Interface IPopupControlContainer

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

    Inherited Members
    IKeyboardProcHookClient.KeyboardHookProc(Int32, Int32)
    IMouseHookHLProcClient.MouseHookProc(Int32, Point, IntPtr, Int32, Int32)
    INeedKeyboardMessages.KeyboardMessage(Message)
    INeedMouseMoveMessages.MouseMessage(Message)
    IPopupChild.HidePopup(PopupCloseType)
    IPopupChild.IsShowing()
    IPopupChild.PopupParent
    IPopupItem.GetPopupParentControl()
    IPopupItem.IsRelatedControl(Control, Boolean)
    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.

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