TextBox::CharacterCasing Property
.NET Framework (current version)
Gets or sets how characters are cased when they are manually entered into the text box.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: property CharacterCasing CharacterCasing { CharacterCasing get(); void set(CharacterCasing value); }
Property Value
Type: System.Windows.Controls::CharacterCasingOne of the CharacterCasing values that specifies how manually entered characters are cased. The default is CharacterCasing::Normal.
The following example shows how to use the CharacterCasing property to convert all manually entered characters to uppercase in a text box.
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <StackPanel> <!-- 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" /> </StackPanel> </Page>
.NET Framework
Available since 3.0
Available since 3.0
Show: