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
.NET Framework (current version)
Specifies the case of characters typed manually into a TextBox control.
Assembly: PresentationFramework (in PresentationFramework.dll)
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" 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>
Imports System Imports System.Windows Imports System.Windows.Controls Namespace SDKSample Partial Public Class CharacterCasingExample Inherits Page Public Sub New() Dim myStackPanel As New StackPanel() 'Create TextBox Dim myTextBox As New TextBox() myTextBox.Width = 100 ' The CharacterCasing property of this TextBox is set to ' "Upper" which causes all manually typed characters to ' be converted to upper case. myTextBox.CharacterCasing = CharacterCasing.Upper myStackPanel.Children.Add(myTextBox) Me.Content = myStackPanel End Sub End Class End Namespace
.NET Framework
Available since 3.0
Available since 3.0
Show: