# Sidebar.ShowPinButton Property

> Gets or sets a value indicating whether the Sidebar's pin button 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.ShowPinButton Property
- **363 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/showpinbutton-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/showpinbutton-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/showpinbutton-property/llms-full.txt

---

### Description

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

### Syntax

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

```vbnet
Public Property ShowPinButton As Boolean
```

### Examples

The following example uses `Sidebar.ShowPinButton` to configure show pin button as part of the sidebar workflow. The configured value is checked before the workflow continues.

```csharp
sidebar.ShowPinButton = true;
if (sidebar.ShowPinButton)
{
    Console.WriteLine("Sidebar: Show Pin Button is enabled.");
}
```

```vbnet
sidebar.ShowPinButton = True
If sidebar.ShowPinButton Then
    Console.WriteLine("Sidebar: Show Pin Button is enabled.")
End If
```

---

## Nearby

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