title: how can we access the controls in the Itemtemplate Silverlight
body: <p>i have a list box. i have an item template with a stack panel in it.
  it has a text box and a check box in the item template.</p>
  
  <p>is there a way i can access the check box and enable/disable it on selected index changed?</p>
  
  <p><code>&lt;UserControl.Resources&gt;
           &lt;DataTemplate x:Key="UserApplicationsTemplate"&gt;
              &lt;StackPanel Orientation="Horizontal"
                          Margin="2"
                          ToolTipService.Placement="Mouse"
                          ToolTipService.ToolTip="{Binding Description, Mode=OneWay}"&gt;
                  &lt;TextBlock Text="{Binding Mode=OneWay}"
                             TextWrapping="Wrap"
                             Width="100"
                             DataContext="{Binding ApplicationName, Mode=OneWay}" /&gt;
                  &lt;CheckBox x:Name="{Binding ApplicationName, Mode=OneWay}"
                            Margin="5,0,0,0"
                            Click="IsActive_Clicked"
                            IsChecked="{Binding IsActive, Mode=OneWay}"
                            Content="IsActive"/&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/UserControl.Resources&gt;</code></p>
  
  <p><code>&lt;ListBox  x:Name="lstbxUserApplications"
                                Height="357"
                                ItemsSource="{Binding Mode=OneWay}"
                                SelectionMode="Single"
                                ItemTemplate="{StaticResource UserApplicationsTemplate}" /&gt;</code></p>