You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FrameworkElement.DataContextChanged has different signature from UWP #2870
difficulty/starter 🚀Categorizes an issue for which the difficulty level is reachable by newcomerskind/bugSomething isn't workingproject/binding 🪢Categorizes an issue or PR as relevant to the binding engine
I just realized that on Android and iOS in the even handler the sender is DependencyObject and on UWP the sender is FrameworkElement so I just created different event handlers for each platform
I did it like this...
`
public DrawingSurface()
{
this.InitializeComponent();
DataContextChanged += this.DrawingSurface_DataContextChanged;
}
Yes, thanks for the update. This is a breaking change that has not been integrated into Uno yet. We're generally batching those as part of larger set of breaking changes so it does not break dependents too often.
difficulty/starter 🚀Categorizes an issue for which the difficulty level is reachable by newcomerskind/bugSomething isn't workingproject/binding 🪢Categorizes an issue or PR as relevant to the binding engine
Activity
jeromelaban commentedon Mar 23, 2020
Indeed, thanks Martin!
ToddGlodek commentedon Oct 1, 2020
Workaround
As suggested by @abrull
I just realized that on Android and iOS in the even handler the sender is DependencyObject and on UWP the sender is FrameworkElement so I just created different event handlers for each platform
I did it like this...
`
public DrawingSurface()
{
this.InitializeComponent();
DataContextChanged += this.DrawingSurface_DataContextChanged;
}
#if WASM
private void DrawingSurface_DataContextChanged(DependencyObject sender, DataContextChangedEventArgs args)
#else
private void DrawingSurface_DataContextChanged(FrameworkElement sender, DataContextChangedEventArgs args)
#endif
{
}
jeromelaban commentedon Oct 2, 2020
Yes, thanks for the update. This is a breaking change that has not been integrated into Uno yet. We're generally batching those as part of larger set of breaking changes so it does not break dependents too often.
MartinZikmund commentedon Oct 25, 2020
Similar difference is for
Loadingevent as well