XAML Trigger Auto-tab when MaxLength is Reached
问题 How can I incorporate an auto-tab when the MaxLength property is reached into a XAML Trigger, DataTrigger, PropertyTrigger, Style.Trigger, etc. Below are two such options for how I have already accomplished this with a TextBox via code-behind. I'm looking to apply it in a XAML style as well. Thanks. XAML: <TextBox x:Name="MyTextBox" Text="{Binding Path=MyProperty}" Style="{StaticResource TextBoxStyle}" MaxLength="5" TextChanged="MyTextBox_TextChanged"> </TextBox> Code-Behind for WPF: private