protected override void OnKeyUp(System.Windows.Input.KeyEventArgs e) > { > base.OnKeyUp(e); > if (this.Text.Length == 1) > { > this.Text = this.Text.ToUpper(); > this.CaretIndex = 1; > } > }>
protected override void OnLostFocus(RoutedEventArgs e) > { > Text = Text.Substring(0, 1).ToUpper() + Text.Substring(1); > base.OnLostFocus(e); > }Thanks, I'll try stuff like this out. I wonder how come simple things like this weren't included as standard.