I have an ItemsControl object that is binded to an ObservableCollection.
Here is my ItemsControl:
<ItemsControl x:Name="AvailableProjects" ItemsSource="{Binding ProjectsList}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<CheckBox x:Name="IsProjectSelected" IsChecked="{Binding IsProjectSelected}" />
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
And here is my ObservableCollection:
public ObservableCollection<ProjectInfo> ProjectsList { get; set; }
I would like that when the user presses the checkBox the "CollectionChanged" event of the observableCollection was fired but it's not working. I noticed that the checkbox item is handling the event and seems that the ObservableCollection doesn't notice. Someone can help me with this? Thanks in advance!