Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CharacterCasing Enumeration


Specifies the case of characters typed manually into a TextBox control.

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

type CharacterCasing

Member nameDescription

Characters typed into a TextBox are converted to lowercase.


Characters typed into a TextBox are not converted.


Characters typed into a TextBox are converted to uppercase.

The value of this enumeration does not affect characters that are added to a TextBox programmatically.

The following example shows how to use the CharacterCasing property to convert all characters to uppercase that are manually entered into a TextBox.

<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
Available since 3.0
Return to top
© 2017 Microsoft