Enable Binding of DisplayName of Link and LinkGroup for i18n purposes
Added DependencyObject class to inheritance hierarchy of Displayable to be able to register DependencyProperties in Link and LinkGroup to enable binding of the DisplayName of both for internationalization.
Thank you! It's really what I need.
Is MUI still being developed? I need this PR.
I don't know. I thought it would be nice to be able to bind these properties for i18n and other purposes but I never had contact to the maintainer. Perhaps she or he simply doesn't want it or hasn't had time to merge it.
I even forgot that this pull request exists...
I have a question.
If I use DisplayName="{DynamicResource ...}" and then change the ResourceDictionary, DisplayName won't change while other property (like Text="{DynamicResource ...}" of TextBlock) will change.
Besides, If I change ResourceDictionary in constructor of MainWindow, DisplayName changes. But after that DisplayName never changes.
How to solve that?
Also, DisplayName shows nothing when I use {Binding ...}. I don't know what's wrong with my code.
@shyakocat your problem is totally related to this PR.
WPF requires every property that should be binded to be a DependencyProperty. Because the DisplayName of the Displayable class is not a DependencyProperty it is not possible to dynamically update this property via INotifyPropertyChanged mechanism.
So neither DynamicRessource nor Binding will work unless you fork this project an implement it on your own :wink:
Thank you very much.