Answer the question
In order to leave comments, you need to log in
Wpf why doesn't binding ListBox CheckBox work?
I can’t understand why set doesn’t work ... When the window is loaded, the listbox is filled, which means get works. Back and forth is in vogue. Maybe someone will give you an idea? I feel that "the truth is somewhere nearby", but the thought does not come.
<ListBox ItemsSource="{Binding Path=Dayweek, Mode=TwoWay}">
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Path=Text}" IsChecked="{Binding Path=Check, Mode=TwoWay}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
public ObservableCollection<CheckText> Dayweek
{
get
{
.........
}
set
{
.........
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question