This documentation is archived and is not being maintained.

TextBox::CharacterCasing Property

Gets or sets how characters are cased when they are manually entered into the text box.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

property CharacterCasing CharacterCasing {
	CharacterCasing get ();
	void set (CharacterCasing value);
<object CharacterCasing="CharacterCasing" .../>

Property Value

Type: System.Windows.Controls::CharacterCasing
One of the CharacterCasing values that specifies how manually entered characters are cased. The default is CharacterCasing::Normal.

Identifier field


Metadata properties set to true


This property does not affect characters that are added programmatically.

The following example shows how to use the CharacterCasing property to convert all manually entered characters to uppercase in a text box.

<Page  xmlns=""

    <!-- The CharacterCasing property of this TextBox is set to "Upper" which 
         causes all manually typed characters to be converted to uppercase. -->
    <TextBox CharacterCasing="Upper" Width="100" />

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.