Allows to switch focus from the current control to the other one on a key press using element name ("Enter" by default).

<TextBox Height="72" Name="textBox1" VerticalAlignment="Top" HorizontalAlignment="Stretch">
      <interactivity:Interaction.Behaviors>
            <mspBehaviors:SwitchFocusOnKeyPressBehavior ControlName="textBox2"/>
      </interactivity:Interaction.Behaviors>
</TextBox>
<TextBox Height="72" HorizontalAlignment="Left" Margin="0,93,0,0" Name="textBox2" Text="will get focus on previous enter press" VerticalAlignment="Top" Width="460" />

 

Last edited Jul 25, 2012 at 10:26 AM by kazarindn, version 6

Comments

No comments yet.