# Sidebar.IsShown Property

> Gets or sets a value indicating whether the Sidebar is shown. 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.IsShown Property
- **373 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/isshown-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/isshown-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/isshown-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether the Sidebar is shown. The default value is `true`.

### Syntax

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

```vbnet
Public Property IsShown As Boolean
```

### Examples

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

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

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

### Remarks

Because of internal usage, it is recommended to use this property instead of `Sidebar.Visibility` to display the sidebar.

---

## Nearby

- **Previous:** [Sidebar.IsPinned Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/ispinned-property/llms-full.txt)
- **Next:** [Sidebar.IsSizable Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/issizable-property/llms-full.txt)
