Wpf itemssource binding not updating

Rated 4.64/5 based on 655 customer reviews

The first two has already been described, while the last one simply means that the update has to be pushed manually through to occur, using a call to Update Source on the Binding.

As you can see, each of the three textboxes now uses a different Update Source Trigger.

If we don't open the drop down first (skip steps 2 and 4), then all items will appear correctly in the drop down.

Yeah, you need to open it to check the items, so after that all new items will not be added immediately.

Sometimes the new item appears in the drop down though, even if the drop down has been opened and closed first. As you see, there is nothing special, just as simple as possible.

Though the WPF Combo Box displays its items properly while the Fluent Ribbon Combo Box does not (in that use case as described: first open the drop-down, then add items).

When Items Source is set, the Items property cannot be used to control the displayed values.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.The first one is set to Explicit, which basically means that the source won't be updated unless you manually do it.For that reason, I have added a button next to the Text Box, which will update the source value on demand.

Leave a Reply