# RibbonFormattingTab.StylesSidebar Property

> Specifies the name of the sidebar that is connected to the RibbonFormattingTab's TXITEM_StyleName's Change Styles drop down item. The property value is String.Empty, if there is no sidebar connected.

- **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 > RibbonFormattingTab.StylesSidebar Property
- **567 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/stylessidebar-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/stylessidebar-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/stylessidebar-property/llms-full.txt

---

### Description

Specifies the name of the [sidebar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/llms-full.txt) that is connected to the RibbonFormattingTab's [TXITEM\_StyleName](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/ribbonitem-enumeration/llms-full.txt)'s Change Styles drop down item. The property value is `String.Empty`, if there is no sidebar connected.

### Syntax

```csharp
public string StylesSidebar { get; set; }
```

```vbnet
Public Property StylesSidebar As String
```

### Examples

The following example uses `RibbonFormattingTab.StylesSidebar` to configure styles sidebar as part of the ribbon formatting tab workflow. The configured value is checked before the workflow continues.

```csharp
ribbonFormattingTab.StylesSidebar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(ribbonFormattingTab.StylesSidebar))
{
    Console.WriteLine($"Styles Sidebar: {ribbonFormattingTab.StylesSidebar}");
}
```

```vbnet
ribbonFormattingTab.StylesSidebar = "Quarterly report"
If Not String.IsNullOrWhiteSpace(ribbonFormattingTab.StylesSidebar) Then
    Console.WriteLine($"Styles Sidebar: {ribbonFormattingTab.StylesSidebar}")
End If
```

### Remarks

Clicking the `TXITEM_StyleName`'s Change Styles drop down item displays or hides the connected sidebar. On clicking the item to show the sidebar, its [content layout](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/contentlayout-property/llms-full.txt) is set to [SidebarContentLayout.Styles](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/sidebarcontentlayout-enumeration/llms-full.txt).

---

## Nearby

- **Previous:** [RibbonFormattingTab.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/ribbonitem-enumeration/llms-full.txt)
- **Next:** [RibbonFormFieldsTab Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformfieldstab/llms-full.txt)
