-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[regression/8.0.0-preview.1.7762] TwoWay Binding does not work when value is changed from the source ViewModel #16849
Comments
We have a similar issue: #16859 |
I believe this was fixed by #16410 |
@samhouts I've tested my sample against both the main and net8 branch and the mentioned PR doesn't fix the issue. |
I'm able to reproduce this on preview7 @StephaneDelcroix I realize that our code should be calling Is that by design? By default, before your change, TwoWay bindings didn't clear when calling We have this issue to fix all of our setters #16654. |
Verified this on Visual Studio Enterprise 17.8.0 Preview 1.0. Repro on Windows 11 .NET 8, Android 13.0-API33 and iOS 16.4 with below Project: |
@PureWeen we no longer clear the bindings in any case (iirc) |
if the value is set with the correct specificity (fromHandler), everything's fine
|
Excellent. This means that this will be resolved when all of the tasks listed in #16654 are complete, which we will target for RC2. I will close this one as a duplicate for now. Thanks! |
Duplicate of #16654 |
Chatted with @StephaneDelcroix There's still an issue with TwoWay bindings that needs to be resolved. We'll hopefully get that fixed for RC1 but if not we have all these coming along #16654 which will fix our controls |
there are 2 way to fix this, any one of the 2 would be enough, but both are required:
|
@PureWeen When you make a decision which option to choose please, take into account that the Entry scenario is one of many where the Binding is broken. We have multiple composite Templated controls (not native) where the Binding is not working. Let's take for example the ComboBox. This is a control with selection that has SelectedItem property. When the selection is performed through the UI we need to set the property from our code which is no longer working. Setting such properties with SetValueFromRenderer or SetValue with FromHandler specificity might not be so intuitive. |
@APopatanasov there's no option, we need to fix both |
don't ask me why, that's how it is - fixes #16849
don't ask me why, that's how it is - fixes #16849
### Description of Change don't ask me why, that's how it is ### Issues Fixed - fixes #16849
Description
I have Entry and Text property with TwoWay Binding. When I change the property in the ViewModel the UI of the Entry is not updated. Even though the example is with Entry I think there is a major issue with the TwoWay Binding because I am observing this issue in multiple controls.
I've tested the my code against the latest changes in net 8 and the issue persists.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/telerik/ms-samples/tree/main/Maui/MauiBindingIssue
Version with bug
8.0.0-preview.7.8842
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.0-preview.6.8686
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: