If you are too lazy to connect xpression.Blend.Sdk then here is a simple but rather clumsy solution:
Markup
<TextBox x:Name="textBox" HorizontalAlignment="Left" Height="23" Margin="155,102,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="186" TextChanged="textBox_TextChanged"/>
TextChanged Handler
public int i = 0; private void textBox_TextChanged(object sender, TextChangedEventArgs e) { i++; if (i == 1) { textBox.Text = textBox.Text[0].ToString().ToUpper(); } else { textBox.SelectionStart = textBox.Text.Length; } if (textBox.Text.Length ==0) { i = 0; } }
When entering text, we consider i is 1 and the first character is output in the upper key, then we transfer the caret to the end of the text field and display the text as it is in the normal registry. When deleting the entire contents of the text field, reset i and enter the capital with a capital letter. Although of course for each field will have to create a separate variable to store the number of characters that is not gud.