TX Text Control .NET for WPF

IsSizable Property

Property|Introduced in 26.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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.");
}

Limitations

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.