Alex Rivera | Logout

Automatically capitalize all input in WPF

Asked 2009-05-07T18:05:35.040
37

Is there a way to automatically capitalize all input throughout a WPF app?

Edit
Report

1 Answer

85

You can case all input into TextBox controls with the following property:

CharacterCasing="Upper"

To apply to all TextBox controls in the entire application create a style for all TextBox controls:

<Style TargetType="{x:Type TextBox}">
    <Setter Property="CharacterCasing" Value="Upper"/>
</Style>
answered 2009-05-07T18:14:40.523

Your Answer