Content Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets an object of type System.Windows.FrameworkElement that represents the content of the Sidebar.
Syntax
public FrameworkElement Content { get; set; }Public Property Content As FrameworkElementExamples
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.");
}sidebar.Content = New System.Windows.FrameworkElement()
If sidebar.Content IsNot Nothing Then
Console.WriteLine("Sidebar: Content is available.")
End IfLimitations
The content can only be set if the ContentLayout is defined as SidebarContentLayout.Custom.