title: Set focus to 1st textbox in items control
body: <p>Let's say I have an items control that is bound to a list of items on the VM. Inside the datatemplate is a textbox. How would I set focus to the first textbox in either XAML or the VM? </p>
  
  <p>Thanks in advance for any help!</p>
  
  <pre><code>&lt;ItemsControl ItemsSource="{Binding UsageItems}" Grid.Row="1" Focusable="False"&gt;
  &lt;ItemsControl.ItemTemplate&gt;
      &lt;DataTemplate&gt;
              &lt;Grid Margin="0,0,0,3"&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="100"/&gt;
                  &lt;ColumnDefinition Width="10"/&gt;
                  &lt;ColumnDefinition Width="Auto"/&gt;
                  &lt;ColumnDefinition Width="10"/&gt;
                  &lt;ColumnDefinition Width="Auto"/&gt;
                  &lt;ColumnDefinition Width="10"/&gt;
                  &lt;ColumnDefinition Width="Auto"/&gt;
              &lt;/Grid.ColumnDefinitions&gt;
  
              &lt;TextBlock Text="{Binding Month}" Style="{StaticResource Local_MonthLabel}" /&gt;
              &lt;core:NumericTextBox Value="{Binding Actual, Mode=OneWay}" Style="{StaticResource Local_ActualUsageEntry}" Grid.Column="2"/&gt;
  
              &lt;core:ValidationControl Instance="{Binding Model}" Grid.Column="4" PropertyName="{Binding MonthNumber, StringFormat=AdjustedUsage{0}}"&gt;
                  &lt;core:NumericTextBox Value="{Binding Adjusted}"  DefaultValueIfNull="0" Style="{StaticResource Local_AdjustUsageEntry}" x:Name="AdjustmentEntry" inventoryLocationSetup:InitialFocusBehavior.Focus="True" /&gt;
              &lt;/core:ValidationControl&gt;
  
              &lt;telerik:RadComboBox ItemsSource="{Binding Converter={StaticResource Converter_EnumToEnumMemberViewModel}, Mode=OneTime, Source={x:Type Enums:UsageAdjustmentTypes}}" SelectedValue="{Binding Code, Mode=TwoWay}" Grid.Column="6" Style="{StaticResource Local_CodeSelector}"/&gt;
  
          &lt;/Grid&gt;
      &lt;/DataTemplate&gt;
  &lt;/ItemsControl.ItemTemplate&gt;
  </code></pre>
  
  <p></p>