# Sidebar.IsPinned Property

> Gets or sets a value indicating whether the Sidebar is rendered inside another control (property value is set to true) or displayed as dialog. 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.IsPinned Property
- **365 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/ispinned-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/ispinned-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/ispinned-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether the Sidebar is rendered inside another control (property value is set to true) or displayed as dialog. The default value is `true`.

### Syntax

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

```vbnet
Public Property IsPinned As Boolean
```

### Examples

The following example uses `Sidebar.IsPinned` to configure is pinned as part of the sidebar workflow. The configured value is checked before the workflow continues.

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

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

---

## Nearby

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