TX Text Control .NET for WPF

StylesSidebar Property

Property|Introduced in 26.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

public string StylesSidebar { get; set; }

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.

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

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 is set to SidebarContentLayout.Styles.