DialogSize Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the size of the dialog where the Sidebar is placed, if the Sidebar.IsPinned property is set to false. To resize the dialog according to its content, the property value must be set to null. The default value is null.
Syntax
public Size? DialogSize { get; set; }Public Property DialogSize As Size?Examples
The following example uses Sidebar.DialogSize to configure dialog size as part of the sidebar workflow. The configured value is checked before the workflow continues.
sidebar.DialogSize = new System.Windows.Size(600, 400);
if (sidebar.DialogSize != null)
{
Console.WriteLine("Sidebar: Dialog Size is available.");
}sidebar.DialogSize = New System.Windows.Size(600, 400)
If sidebar.DialogSize IsNot Nothing Then
Console.WriteLine("Sidebar: Dialog Size is available.")
End If