Avalonia UI - binding in markup extension?
Hi, I'm trying to create a localization extension for my new desktop app and I want to support binding in my localization markup extension, how can I do that? I can receive the binding (CompiledBindingExtension) as a parameter and somehow I managed to get a value out of it to translate it but only by changing the Converter instance in the binding, which can be no-go in the future and also if I changed the language, all other localized strings changed because I used a ReflectionBinding for them but I don't know how to do it when I accept binding as a parameter? I'm kinda lost... Can anyone help me please?
Here is my current implementation that only accept string keys:
(I deleted the implementation for the binding as it was not working properly...)
1 Reply