Export (0) Print
Expand All
Expand Minimize

CharacterCasing Enumeration

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

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

public enum class CharacterCasing
<object property="enumerationMemberName" .../>

Member nameDescription
LowerCharacters typed into a TextBox are converted to lowercase.
NormalCharacters typed into a TextBox are not converted.
UpperCharacters 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="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    <!-- 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.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft