# Sidebar.IsSizable Property

> Gets or sets a value indicating whether the Sidebar can be sized with the mouse. The default value is true.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > Sidebar.IsSizable Property
- **434 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/issizable-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/issizable-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/issizable-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether the Sidebar can be sized with the mouse. The default value is `true`.

### Syntax

```csharp
public bool IsSizable { get; set; }
```

```vbnet
Public Property IsSizable As Boolean
```

### 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.

```csharp
sidebar.IsSizable = true;
if (sidebar.IsSizable)
{
    Console.WriteLine("Sidebar: Is Sizable is enabled.");
}
```

```vbnet
sidebar.IsSizable = True
If sidebar.IsSizable Then
    Console.WriteLine("Sidebar: Is Sizable is enabled.")
End If
```

### 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`.

---

## Nearby

- **Previous:** [Sidebar.IsShown Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/isshown-property/llms-full.txt)
- **Next:** [Sidebar.ShowCloseButton Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/showclosebutton-property/llms-full.txt)
