-
-
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
Binding fallback not working on latest 0.9 preview 3 #3139
Comments
@braca I've not had chance to look into this properly, but does it work if you return a My guess is that Portable.Xaml supported markup extensions returning markup extensions recursively, whereas our XAML compiler doesnt. In fact I'm not even sure that recursive binding extensions should work, it might have just been a "hidden" feature of Portable.Xaml. |
Hi @grokys, I've tried to replace
with
but the end result was the same |
@grokys I think this is not a bug after all, my bad. In WPF the behaviour is the same, I thought it wasn't but my WPF code had a small difference, and that makes all the difference. Removing the So, I believe that the bug was on 0.8.x where it was behaving differently from WPF :) Feel free to close it |
Hi,
I have a TranslateExtension that I use in Avalonia, and WPF to translate some stuff, the code is pretty simple.
Bascialy, when the is no translation for a specific key (returns null), a fallback value is used instead.
This extension works fine with WPF, and Avalonia 0.8.3.
The problem occurs with the latest version 0.9 preview 3, where it seems that it's ignoring the
FallbackValue
Repro project: https://github.com/braca/avalonia-binding-fallback-bug
You can load my repro project, with 0.8.3 it will work perfectly, if you update to the latest 0.9 preview 3, the fallback value won't be used.
Note: When you update to the latest preview, comment this
using Portable.Xaml.Markup;
inTranslateExtensions.cs
The text was updated successfully, but these errors were encountered: