Bug 55373 - [Feature Request] Add at BindingContextChanged event oldValue and newValue
Summary: [Feature Request] Add at BindingContextChanged event oldValue and newValue
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: All All
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-04-19 14:05 UTC by workgroupengineering
Modified: 2017-04-19 15:23 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description workgroupengineering 2017-04-19 14:05:31 UTC
in a library I'm building, i have necessity to get oldValue and newValue in BindingContextChanged event, because i need to subscribe event on new contexet and unsubscribe on old context when the BindingContext is changed.
Comment 1 workgroupengineering 2017-04-19 14:22:55 UTC
I would working a PR, but i have a doubt.

It 'better to change the definition of BindindingContexChanged


public class BindablePropertyChangedEventArgs
    public object NewValue {get; Internal sets; }
    public object OldValue {get; Internal sets; }
    public BindableProperty Property {get; Internal sets; }

public event EventHandler <BindablePropertyChangedEventArgs> BindingContextChanged;

or so:

public event BindingPropertyChangedDelegate BindingContextChanged
Comment 2 Jimmy [MSFT] 2017-04-19 15:23:40 UTC
Thank you for your feedback! As this would change the existing API, it would be best to create a proposal in our Evolution forum[1] for this so there can be a discussion with the Forms team and community. When submitting a proposal on the Evolution forum, be sure to first read and follow the contribution guidelines[2] so your proposal can be considered. 

[1] https://forums.xamarin.com/categories/xamarin-forms-evolution
[2] https://forums.xamarin.com/discussion/84503/please-read-first