✅ WPF thinks my collection has no items
It's a bit much to explain with full context, but the gist is:
An
Action
has a Fields
which has a list of Field
.
Each of the viewmodels is bound to a View.
ActionView
has:
RawFieldsView
has:
But no matter what, Fields.Count
always displays 0, and the ItemsControl is empty.
I have confirmed that the underlying ViewModels definitely have filled collections with stuff in them. There are definitely not 0 Fields in the Action.
And yet, that's what WPF says!
Any clues?1 Reply
Resolved by myself; caused by "intended" behavior. I had this combobox hooked up to replace the existing Action with a brandnew one when changed, but that change event fired immediately, causing them all to be replaced by new empty husks immediately. So all the binding was working fine.