jeudi 2 février 2017

WPF Check Box binding IsChecked to User Settings

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>




Aucun commentaire:

Enregistrer un commentaire