IsSizable 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 a value indicating whether the Sidebar can be sized with the mouse. The default value is true.
Syntax
public bool IsSizable { get; set; }Public Property IsSizable As BooleanExamples
The following example uses Sidebar.IsSizable to configure is sizable as part of the sidebar workflow. The configured value is checked before the workflow continues.
sidebar.IsSizable = true;
if (sidebar.IsSizable)
{
Console.WriteLine("Sidebar: Is Sizable is enabled.");
}sidebar.IsSizable = True
If sidebar.IsSizable Then
Console.WriteLine("Sidebar: Is Sizable is enabled.")
End IfLimitations
A sidebar can only be horizontally sized if the Sidebar.HorizontalAlignment property is set to System.Windows.HorizontalAlignment.Left or System.Windows.HorizontalAlignment.Right. To resize the sidebar vertically, the Sidebar.VerticalAlignment property must be set to System.Windows.VerticalAlignment.Top or System.Windows.VerticalAlignment.Bottom.