StylesSidebar Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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; }Public Property StylesSidebar As StringExamples
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}");
}ribbonFormattingTab.StylesSidebar = "Quarterly report"
If Not String.IsNullOrWhiteSpace(ribbonFormattingTab.StylesSidebar) Then
Console.WriteLine($"Styles Sidebar: {ribbonFormattingTab.StylesSidebar}")
End IfRemarks
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.