すべてのWPF TextBox入力テキストをCapsに変換する方法を教えてください。WPF TextBox入力をすべてのCapsに自動的に変換しますか?
8
A
答えて
12
に設定することができCharacterCasing
性質を持っていると信じています。
4
私は、TextBoxのは、あなたが私の推測では、テキストボックスにCharacterCasing propertyを設定することですアッパー
0
<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>
App.xaml
であなたのグローバルなスタイルでそのような何かを追加します。