I have a modal popup containing a CheckBox that uses an explicit linking link to update the link source when the user clicks the save button on the form.
<CheckBox Content="Default" IsChecked="{Binding Path=Unit.IsDefault, Mode=TwoWay, UpdateSourceTrigger=Explicit"/>
Now I want to add a cancel button to the form, if the user clicks it, I would like to check if there are any pending binding updates, and if so, show the user a message.
Can this be done with bindings? I hope for something like:
BindingExpression binding = cb.GetBindingExpression(CheckBox.IsCheckedProperty); binding.HasPendingUpdates(); // Anything similar to this?
Otherwise, does anyone have any other suggestions on how to track binding changes that have not yet been explicitly updated?
source share