# Sidebar Constructor

> Initializes a new instance of the Sidebar class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **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 Constructor
- **310 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/constructor/llms-full.txt

---

### Description

Initializes a new instance of the Sidebar class.

### Syntax

```csharp
public Sidebar();
```

```vbnet
Public Sub New()
```

### Examples

The following example creates a Sidebar instance and configures its content layout setting for a document workflow.

```csharp
TXTextControl.WPF.Sidebar sidebar = new();
sidebar.ContentLayout = TXTextControl.WPF.Sidebar.SidebarContentLayout.Custom;
```

```vbnet
Dim sidebar As New TXTextControl.WPF.Sidebar()
sidebar.ContentLayout = TXTextControl.WPF.Sidebar.SidebarContentLayout.Custom
```

---

## Nearby

- **Previous:** [Sidebar.ConditionalInstructionsItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/conditionalinstructionsitem-enumeration/llms-full.txt)
- **Next:** [Sidebar.Content Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/content-property/llms-full.txt)
