vendredi 20 janvier 2017

Multiple checkbox in list and is check in wpf

I've got a question, I am having list of checkbox in combobox box and it looks like:

                 <StackPanel Orientation="Vertical" DataContext="{Binding CandidateEntity}">

                        <StackPanel Orientation="Horizontal">

                            <ComboBox ItemsSource="{Binding DataContext.SkillSetEntities, ElementName=CrudCandidate }"
                                IsEditable="True" IsReadOnly="True" Text="Umiejętności">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" />
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                        </StackPanel>

                 </StackPanel>

Now i am also having a collection of skillset objects in bindet item source (CandidateEntity.SkillSets), now how can I check those checkboxes that are in my collection of skillset objects?

I wan to create edition for CandidateEntity object in form and part of that edition is list of skillset that is represented in combobox.




Aucun commentaire:

Enregistrer un commentaire