dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.82k stars 1.66k forks source link

BindingOperations Missing #23089

Open bobbydharrell opened 2 weeks ago

bobbydharrell commented 2 weeks ago

Description

While trying to work in an attached behavior I discovered that the UIElement was losing the binding context with what I was doing. In an effort to fix this I tried to retrieve the Binding to preserve it, but found that BindingOperations and BindingExpressions were not in .Nat MAUI. Please port them over.

Steps to Reproduce

No Demo is needed as it is just a missing feature

Link to public reproduction project repository

https://learn.microsoft.com/en-us/dotnet/desktop/wpf/data/how-to-get-the-binding-object-from-a-bound-target-property?view=netframeworkdesktop-4.8

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

I have been unable to find a workaround to retrieve the binding.

Relevant log output

No response

kevinxufei commented 1 week ago

Verified this issue with Visual Studio 17.11.0 Preview 2.1, Can repro it. MAUI project prompts you to install the Uno.UI package, but WPF project works fine. WPF: image MAUI: image