title: How to Enable/Disable a IsEnabled/IsHitTestVisible Property of a Checkbox with Binding
body: <p>I'm trying to Enable/Disable a checkbox being checked. Our application uses MVVM, is being develop with c# WPF, and no code-behind. Just MVVM and Binding.
  I'm trying to do using PropertyChanged, but no luck. All other fields works just fine, except this one.</p>
  
  <p>Here's my XAML:</p>
  
  <pre><code>&lt;ct:DataGridExtended Name="dtgProfiles" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsReadOnly="True" FrozenColumnCount="2" Margin="-1,23,-1,-1" SelectionMode="Single" ScrollViewer.IsDeferredScrollingEnabled="True" AutoGenerateColumns="False" ItemsSource="{Binding RightProfiles, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" SelectedItem="{Binding RightProfilesSelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" SelectedIndex="{Binding ResourcesSelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="4"&gt;
          &lt;ct:DataGridExtended.Columns&gt;
              &lt;DataGridCheckBoxColumn Binding="{Binding Selected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  &gt;
                  &lt;DataGridCheckBoxColumn.ElementStyle&gt;
                      &lt;Style TargetType="CheckBox"&gt;
                          &lt;Setter Property="Margin" Value="3,2,1,1"/&gt;
                          &lt;Setter Property="IsHitTestVisible" Value="{Binding IsEditing, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" /&gt;
                      &lt;/Style&gt;
                  &lt;/DataGridCheckBoxColumn.ElementStyle&gt;
              &lt;/DataGridCheckBoxColumn&gt;
          &lt;DataGridTextColumn Header="Nome" Binding="{Binding RightProfile.Name}" /&gt;
      &lt;/ct:DataGridExtended.Columns&gt;
  &lt;/ct:DataGridExtended&gt;
  </code></pre>
  
  <p>You can see there, i've set the IsHitTestVisible to my IsEditing property. This property notifies if user is in edit mode or view mode. My problem is, this is the only field than Binding IsEditing doesn't work.</p>
  
  <p>Being more exactly (maybe there's another way to do that): While in ViewMode, i can't let user updates nothing in my Grid, including TextBlocks and Checkbox. I could block my entire grid using IsHitTestVisible={"Binding IsEditing}", but with this, I also blocks my ScrollBar. And the user is allowed to scroll this grid.</p>
  
  <p>How I can do this? It's burning my head already.</p>
  
  <p>Thanks</p>