New to Telerik UI for WinFormsStart a free 30-day trial

IPopupControl

Interface

An interface for all Popup-forms used in RadControls for WinForms.

Definition

Properties

Gets the Bounds rectangle of the IPopupControl.

C#
Rectangle Bounds { get; }

Gets a List<T> instance that represents a collection of logical children of this IPopupControl. The OwnerPopup property of these children would point to this IPopupControl instance.

C#
List<IPopupControl> Children { get; }

Gets the owner element of the IPopupControl.

C#
RadElement OwnerElement { get; }

Gets the owner IPopupControl of this IPopupControl.

C#
IPopupControl OwnerPopup { get; }

Methods

This method determines whether the IPopupControl can be closed. Used in the PopupManager class to prevent the IPopupControl from closing in specific occasions.

C#
bool CanClosePopup(RadPopupCloseReason reason)
Parameters:reasonRadPopupCloseReason

The reason why the IPopupControl is closed.

Returns:

bool

True if the IPopupControl can be closed, otherwise false.

Tries to close the IPopupControl.

C#
void ClosePopup(PopupCloseInfo closeInfo)
Parameters:closeInfoPopupCloseInfo

An instance of the PopupCloseInfo class containing information about the close request.

Closes the IPopupControl.

C#
void ClosePopup(RadPopupCloseReason reason)
Parameters:reasonRadPopupCloseReason

Executes when a key is pressed.

C#
bool OnKeyDown(Keys keyData)
Parameters:keyDataKeys

An instance of the Keys struct which contains the key information.

Returns:

bool

A boolean value that determines whether the IPopupControl processes the message.

Callback for handling the WM_MOUSEWHEEL message.

C#
bool OnMouseWheel(Control target, int delta)
Parameters:targetControldeltaintReturns:

bool

True if the message is processed, false otherwise.

Shows the IPopupControl at the specific location.

C#
void ShowPopup(Rectangle alignmentRect)
Parameters:alignmentRectRectangle

An instance of the Rectangle struct which represents a portion of the screen which the IPopupControl is aligned to.