Reputation: 16959
How should I convert all WPF TextBox input text into Caps?
Upvotes: 12
Views: 5535
Reputation: 1076
Add something like that in your global styles in App.xaml
<Style TargetType="{x:Type TextBox}">
<Setter Property="VerticalAlignment" Value="Center"></Setter>
<Setter Property="Height" Value="28"/>
<Setter Property="Padding" Value="5"/>
<Setter Property="CharacterCasing" Value="Upper" />
</Style>
Upvotes: 1
Reputation: 1659
My guess would be to set the CharacterCasing property on the Textbox.
Upvotes: 19
Reputation: 2257
I believe TextBox has a CharacterCasing
property you can set to Upper
Upvotes: 5