© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
1 reply
Honza K.

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...)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Errors in Avalonia.UI
C#CC# / help
2y ago
✅ (Avalonia) i dont get data binding
C#CC# / help
3y ago
Avalonia UI: Issue with code generation
C#CC# / help
3y ago
❔ Playing a video using avalonia ui
C#CC# / help
3y ago