TransientForm

FormWindowPanelContainerControlBindableWidgetWidget
public sealed class TransientForm : Form
Provides a form hosting a single control, a custom title bar and an auto-close on focus loss mechanism.

Constructors

TransientForm

#
public TransientForm(Control content, string title, Size? size = null)
Create a new transient form.
content (Control)Content to host.
title (string)Title text for form.
size (Size? = null)Optional size for content. If omitted, the existing size dimensions are used.

Fields

BarHeight

#
public const int BarHeight = 20

EdgeWidth

#
public const int EdgeWidth = 1

Properties

AutoClose

#
public bool AutoClose { get; set; }
Gets or sets whether this transient form ought to close automatically on focus loss.

HostedControl

#
public Control HostedControl { get; }
Gets the control hosted in this form.

SourceBox

#
public RectangleF? SourceBox { get; set; }
Gets or sets the optional source box. If set, the transient form will appear underneath the box.

TitleBar

#
public CustomTitleBar TitleBar { get; }
Gets the title bar of this form.