GotoSidebar 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 vertical sidebar that is connected to the RibbonFormattingTab's TXITEM_Goto button. The property value is String.Empty, if there is no sidebar connected.
Syntax
public string GotoSidebar { get; set; }Public Property GotoSidebar As StringExamples
The following example uses RibbonFormattingTab.GotoSidebar to configure goto sidebar as part of the ribbon formatting tab workflow. The configured value is checked before the workflow continues.
ribbonFormattingTab.GotoSidebar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(ribbonFormattingTab.GotoSidebar))
{
Console.WriteLine($"Goto Sidebar: {ribbonFormattingTab.GotoSidebar}");
}ribbonFormattingTab.GotoSidebar = "Quarterly report"
If Not String.IsNullOrWhiteSpace(ribbonFormattingTab.GotoSidebar) Then
Console.WriteLine($"Goto Sidebar: {ribbonFormattingTab.GotoSidebar}")
End IfRemarks
Checking the TXITEM_Goto button, if the corresponding vertical sidebar drop down button is toggled, displays the connected sidebar as pinned. If the drop down button is not toggled, the sidebar is represented by a non-sizable dialog. In both cases, the sidebar's content layout is set to SidebarContentLayout.Goto and the connected horizontal go to sidebar is hidden.