Back to Devexpress

HtmlContentPopup.Show(IWin32Window, Rectangle) Method

windowsforms-devexpress-dot-xtraeditors-dot-htmlcontentpopup-dot-show-x28-system-dot-windows-dot-forms-dot-iwin32window-system-dot-drawing-dot-rectangle-x29.md

latest3.5 KB
Original Source

HtmlContentPopup.Show(IWin32Window, Rectangle) Method

Displays the HtmlContentPopup as a popup window within the specified bounds.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void Show(
    IWin32Window owner,
    Rectangle bounds
)
vb
Public Sub Show(
    owner As IWin32Window,
    bounds As Rectangle
)

Parameters

NameTypeDescription
ownerIWin32Window

The window’s owner.

| | bounds | Rectangle |

The rectangle to fit the window.

|

Remarks

You can specify the window’s size in CSS code (see the Styles property of the HtmlContentPopup.HtmlTemplate object). This size setting overrides the size specified by the bounds parameter.

A popup window is hidden when a user clicks outside the window’s bounds.

Use the HtmlContentPopup.HideAutomatically and HtmlContentPopup.AutoHidingDelay properties to hide the popup automatically after a specific delay.

A popup can be closed when a user clicks any element within the popup (this is useful if you use HtmlContentPopup to create a menu of commands). Use the HtmlContentPopup.HideOnElementClick property to enable this feature.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Show(IWin32Window, Rectangle) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-chat-for-net-framework/CS/DevExpress.AI.WinForms.HtmlChat/ChatControl.cs#L102

csharp
Rectangle screenRect = gridControl.RectangleToScreen(new Rectangle(location, size));
    messageMenuPopup.Show(gridControl, screenRect);
}

See Also

Activate()

Close

Hide()

HtmlContentPopup Class

HtmlContentPopup Members

DevExpress.XtraEditors Namespace