-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
System.StackOverflowException when using OneWayToSource binding #4438
Comments
I'm using |
@LtDetFrankDrebin could you fix your markdown? I'm having trouble reading it. |
Thanks to the one who fixed markdown for me. I used "Insert code" button |
As a workaround I use MultiValueConverter now:
ViewModel:
|
I am running into this issue as well. Having two OneWayToSource binding binding to the same object result in an infinite loop when calling |
This also happens when binding DatePicker. Seems like the "Date" and "SelectedDate" are both trying to update. |
@grokys Any updates on this issue? I have to remove most of the OneWayToSourceBinding to avoid the StackOverFlow error. |
Anyone fancy to test if #13970 would solve this issue? |
Was not fixed in 11.0.7 |
That's expected as the PR was not released yet. It's only testable in nightly builds. https://github.com/AvaloniaUI/Avalonia/wiki/Using-nightly-build-feed |
I'm sorry that I saw that the PR had been merged and subconsciously thought it was already in the release version |
nvm, tested new nightly, the behavior changed. |
Just tried this on latest master and it seems to be fixed. I think it will have been fixed by #13970. |
When I use OneWayToSource binding from a control to ViewModel I get wrong behavior:
Example 1:
View:
ViewModel:
Result:
After executing I get infinity loop in
set => this.RaiseAndSetIfChanged( ref _bounds, value );
.Example 2:
View:
ViewModel:
Result:
After executing and moving mouse over red or blue square I get infinity loop in
set => this.RaiseAndSetIfChanged( ref _isActive, value );
.The text was updated successfully, but these errors were encountered: