TX Text Control .NET for WPF

BackColor Property

Property|Introduced in 29.0
Namespace
TXTextControl.WPF.Barcode
Package
TXTextControl.TextControl.WPF.SDK as TXBarcode.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the background color for the barcode control. The default value is null and represents the color SystemColors.WindowColor.

Syntax

public Color? BackColor { get; set; }

Examples

The following example uses TXBarcodeControl.BackColor to set the txbarcode control's background color. The configured value is checked before the workflow continues.

tXBarcodeControl.BackColor = System.Windows.Media.Colors.CornflowerBlue;
if (tXBarcodeControl.BackColor != null)
{
    Console.WriteLine("TXBarcode Control: Back Color is available.");
}