Files
docs-desktop/dotnet-desktop-guide/framework/wpf/controls/how-to-enable-tab-characters-in-a-textbox-control.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

21 lines
915 B
Markdown

---
title: "How to: Enable Tab Characters in a TextBox Control"
ms.date: "03/30/2017"
helpviewer_keywords:
- "TextBox control [WPF], enabling tab characters"
- "tab characters [WPF], enabling"
ms.assetid: 14b1b064-61f7-4958-be63-88d85b868d03
---
# How to: Enable Tab Characters in a TextBox Control
This example shows how to enable the acceptance of tab characters as normal input in a <xref:System.Windows.Controls.TextBox> control.
## Example
To enable the acceptance of tab characters as input in a <xref:System.Windows.Controls.TextBox> control, set the <xref:System.Windows.Controls.Primitives.TextBoxBase.AcceptsTab%2A> attribute to **true**.
[!code-xaml[TextBox_EnablingTab#_AcceptsTab](~/samples/snippets/csharp/VS_Snippets_Wpf/TextBox_EnablingTab/CS/Window1.xaml#_acceptstab)]
## See also
- [TextBox Overview](textbox-overview.md)
- [RichTextBox Overview](richtextbox-overview.md)