Language Binding does not update when value of binded property changes
See original GitHub issueDescribe the bug I have used the following way to bind my label
<Label BorderThickness="0" Content="{ex:Lang Key={Binding AppStatus}}"/>
I have the following keys in my Lang.resx = “Idle”, “Searching” whose values are also defined. Now the Initial value of AppStatus is set to “Idle” and it shows and changes as I change language, but when I change the value of AppStatus to something else, say AppStatus = “Searching” I expected the value on the UI to change as well(to display the localized value of ‘Searching’), but it stays on “Idle”.
To Reproduce Steps to reproduce the behavior:
- Bind any control with {ex:Lang Key={Binding BindingProperty}}
- Change the value of ‘BindingProperty’ to something else from the code
- The display value of the control doesn’t change.
Expected behavior When the value of BindedProperty is changed, I expected it would display the localized string of new value.
Environment (please complete the following information):
- .net: 5.0
- IDE vs2019
- Version 3.3.7
Additional context changing value from viewModel
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Bound property not updating upon change
The main problem is that Blazor just isn't going to update the textbox if it thinks its value hasn't changed. Part of this...
Read more >MVVM binding is not updating UI element
Hi everyone, my issue is I don't update the user interface (TextBlock). In summary: by executing a method under translation (ImportData, ...
Read more >WPF and Notifying Property Change
This is the mechanism by which the model (the thing being bound to) notifies the GUI that it should ask for an updated...
Read more >The UpdateSourceTrigger property
This behavior is controlled by a property on the binding called UpdateSourceTrigger. It defaults to the value "Default", which basically means that the...
Read more >MVVM problems, having troubles with data bindings ...
The response is received and parsed. The VM changes a property based on the response. A Label has bound its content to that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes
Shall I create issue on ‘HandyControl’ ?