mui icon indicating copy to clipboard operation
mui copied to clipboard

Enable Binding of DisplayName of Link and LinkGroup for i18n purposes

Open prskr opened this issue 8 years ago • 6 comments

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.

prskr avatar Jul 26 '16 12:07 prskr

Thank you! It's really what I need.

Dvornik avatar Jul 31 '16 12:07 Dvornik

Is MUI still being developed? I need this PR.

gabriel-alecu avatar Dec 23 '16 08:12 gabriel-alecu

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...

prskr avatar Dec 23 '16 08:12 prskr

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 avatar Jan 13 '20 21:01 shyakocat

@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:

prskr avatar Jan 17 '20 21:01 prskr

Thank you very much.

shyakocat avatar Jan 18 '20 07:01 shyakocat