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">
            <mspBehaviors:SwitchFocusOnKeyPressBehavior ControlName="textBox2"/>
<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


No comments yet.