mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 16:06:07 +02:00
* 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
21 lines
915 B
Markdown
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)
|