TX Text Control .NET for WPF

AcceptsTab Property

Property|Introduced in 16.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 a value indicating whether pressing the TAB key types a TAB character in the control instead of moving the focus to the next control in the tab order. This is a dependency property.

Syntax

public bool AcceptsTab { get; set; }

Examples

The following example uses TextControl.AcceptsTab to allow users to insert tab characters while editing. The configured value is checked before the workflow continues.

textControl.AcceptsTab = true;
if (textControl.AcceptsTab)
{
    Console.WriteLine("Text Control: Accepts Tab is enabled.");
}