Skip to content

MessageBox.ResizeToContentSize(UIElement) method

Defined in

Type: MessageBox Namespace: CrissCross.WPF.UI.Controls Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

protected virtual void ResizeToContentSize(UIElement rootElement)

Summary: Resizes the MessageBox to fit the content's size, including margins.

Parameters

NameTypeDescription
rootElementUIElementThe root element of the MessageBox.