title: How to disable CheckBox inside ListView
body: <p>I have ListView with one column that contains checkboxes</p>
  
  <pre><code> &lt;ListView Height="164" HorizontalAlignment="Left" ItemsSource="{Binding ProductList}" Name="listView1" VerticalAlignment="Top"&gt;
          &lt;ListView.Resources&gt;
              &lt;Style x:Key="DataGridCheckBox" TargetType="{x:Type CheckBox}"&gt;
                  &lt;Setter Property="FrameworkElement.HorizontalAlignment" Value="Center" /&gt;
                  &lt;Setter Property="Control.HorizontalContentAlignment" Value="Center" /&gt;
                  &lt;Setter Property="UIElement.IsEnabled" Value="True" /&gt;
                  &lt;Setter Property="FrameworkElement.Margin" Value="4" /&gt;
                  &lt;Setter Property="FrameworkElement.VerticalAlignment" Value="Center" /&gt;
                  &lt;Setter Property="Control.VerticalContentAlignment" Value="Center" /&gt;
              &lt;/Style&gt;
          &lt;/ListView.Resources&gt;
          &lt;ListView.View&gt;
              &lt;GridView&gt;
                  &lt;GridViewColumn Width="40"&gt;
                      &lt;GridViewColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;CheckBox Style="{StaticResource DataGridCheckBox}" /&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/GridViewColumn.CellTemplate&gt;
                  &lt;/GridViewColumn&gt;
                  &lt;GridViewColumn DisplayMemberBinding="{Binding ProductName}" Header="Product Name" Width="120" /&gt;
              &lt;/GridView&gt;
          &lt;/ListView.View&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>How can I disable checkboxes from code?
  Is it possible to do that with something like: <code>window1.checkBox1.IsEnabled = false;</code> ?</p>