Open bakerhillpins opened 2 years ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
@StephaneDelcroix
Issue:
Not sure why this is being done this way but Bindings, coalesce a context value from several sources and process them.
object bindingContext = src ?? Context ?? context;
The code above seems to cover for the fact that the context value is set on the binding object here, rather than the BindableObject
itself, and thus when ApplyBindings is executed and uses BindableObject.BindingContext
it searches for the "correct value". TypedBinding
makes this test too.
MultiBinding
doesn't do this so it doesn't find anything to bind to.
I've added a fix for this to the PR above, #12060
Description
If a
MultiBinding
is applied to anyBindableObject.BindingContext
property the actual bindings in the collection are never evaluated.For example, Here the bindings to
Property1
andProperty2
will not be evaluated. Note theMultbinding
is applied to theBindingContext
property.But if the same
MultiBinding
is moved to theText
property, it works as expected.Steps to Reproduce
Clone and build the Git Repo linked below. There are 6 different binding scenarios shown and all work except the
MultiBinding
on theBindingContext
property.Link to public reproduction project repository
https://github.com/bakerhillpins/Issues/tree/NetMauiIssue10792
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
All
Did you find any workaround?
No workaround determined at this time.
Relevant log output
No response