TX Text Control .NET for WPF

Content 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

Gets or sets an object of type System.Windows.FrameworkElement that represents the content of the Sidebar.

Syntax

public FrameworkElement Content { get; set; }

Examples

The following example uses Sidebar.Content to configure content as part of the sidebar workflow. The configured value is checked before the workflow continues.

sidebar.Content = new System.Windows.FrameworkElement();
if (sidebar.Content != null)
{
    Console.WriteLine("Sidebar: Content is available.");
}

Limitations

The content can only be set if the ContentLayout is defined as SidebarContentLayout.Custom.