7
Answers

How to bind WPF Checkbox IsChecked to User Settings

Simba White

Simba White

7y
273
1

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)