Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Provide Keyboard Access to Text Boxes

<Window x: Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="WPF" Height="200" Width="250">     <StackPanel>         <StackPanel Margin="10" Orientation="Horizontal">             <Label Target="{Binding ElementName=textBox1}">Label _1</Label>             <TextBox Name="textBox1" Width="150"></TextBox>         </StackPanel>     </StackPanel> </Window>