Simba White

Simba White

  • NA
  • 32
  • 8.1k

How to bind WPF Checkbox IsChecked to User Settings

Feb 2 2017 9:03 AM

I have list of check boxes. The Content binding works fine. I have a list of Settings in the Application Settings of type bool. My question, how to bind IsChecked to these Settings ?

Your help is greatly appreciated.

 
 
<ListBox Name="CheckBoxZone" ItemsSource="{Binding mySourceProperty}">
 <ListBox.ItemTemplate> 
  <DataTemplate> 
  <CheckBox Name="CheckBoxZone" Content="{Binding Text}" IsChecked="{Binding IsChkd}" />
 </DataTemplate> 
</ListBox.ItemTemplate> 
</ListBox>
 

Answers (7)