Wpf itemssource binding not updating


It does seem more intuitive to take this approach however Data Grid Columns are not actually part of the visual tree and only the Binding DPs will actually be set on generated cell elements to inherit Data Grid’s Data Context.

This works because internally when the cell is being generated, the Content of the cell will have its layout updated which will make it part of the visual tree and it will have access to the correct Data Context.

wpf itemssource binding not updating-11wpf itemssource binding not updating-32wpf itemssource binding not updating-61

But one more issue with i OS is that when you exit the app by pressing the Home button, the app is actually in the suspended state and a snapshot of the current page is saved.

So when you restart the app, the last snapshot stored is displayed.

Instead, the source was updated only after focus was lost on the Text Box.

This behavior is controlled by a property on the binding called Update Source Trigger.

It defaults to the value "Default", which basically means that the source is updated based on the property that you bind to.