TX Text Control .NET for WPF

ConditionalInstructionsSidebar Property

Property|Introduced in 28.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 vertical sidebar that is connected to the RibbonFormFieldsTab's TXITEM_ManageConditionalInstructions button and its vertical sidebar drop down button. The property value is String.Empty, if there is no sidebar connected.

Syntax

public string ConditionalInstructionsSidebar { get; set; }

Examples

The following example uses RibbonFormFieldsTab.ConditionalInstructionsSidebar to configure conditional instructions sidebar as part of the ribbon form fields tab workflow. The configured value is checked before the workflow continues.

ribbonFormFieldsTab.ConditionalInstructionsSidebar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(ribbonFormFieldsTab.ConditionalInstructionsSidebar))
{
    Console.WriteLine($"Conditional Instructions Sidebar: {ribbonFormFieldsTab.ConditionalInstructionsSidebar}");
}

Remarks

Checking the TXITEM_ManageConditionalInstructions 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 sizable dialog. In both cases, the sidebar's content layout is set to SidebarContentLayout.ConditionalInstructions and the connected horizontal conditional instructions sidebar is hidden.