Jos*_*h G 63
您可以TextBox使用以下属性将所有输入置于控件中:
CharacterCasing="Upper"
Run Code Online (Sandbox Code Playgroud)
要应用于TextBox整个应用程序中的所有控件,请为所有TextBox控件创建样式:
<Style TargetType="{x:Type TextBox}">
<Setter Property="CharacterCasing" Value="Upper"/>
</Style>
Run Code Online (Sandbox Code Playgroud)