WPFLocalizationExtension | easy way to localize any type of DependencyProperties | iOS library
kandi X-RAY | WPFLocalizationExtension Summary
kandi X-RAY | WPFLocalizationExtension Summary
LocalizationExtension is a the easy way to localize any type of DependencyProperties or native Properties on DependencyObjects
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WPFLocalizationExtension
WPFLocalizationExtension Key Features
WPFLocalizationExtension Examples and Code Snippets
Community Discussions
Trending Discussions on WPFLocalizationExtension
QUESTION
I am new to WPF but want to build a Windows application with the UI defined in XAML that supports localization from the beginning. It is not only the UI elements that needs to be localized but also a lot of content which is residing in a database.
I have set up a database structure to be able to hold the localized information, but I am not sure how to get it displayed with regards to the locale chosen e.g. "en-US" or "de-DE".
How do I provide the localized texts to the XAML UI elements in a way that is natural to WPF/XAML? I do not want to rely on any third party code such as WPFLocalizationExtension.
I have seen how this is possible with a resource file but that will only support localization for the known UI elements not the content which is dynamically generated.
Is there a specific provider I should implement or am I missing something completely different?
...ANSWER
Answered 2019-May-01 at 10:11The way I ended up solving this was as follows. Remember I need to extract the localized texts from a database/remote api.
With this solution I can databind like this and all bound texts will change automatically when I change the language:
QUESTION
I'm using WPFLocalizationExtension
for my WPF app.
I have one ComboBox
for languages selection. Item source is an ObservableCollection>
as below:
TITLE_LANGUAGE_ENGLISH
:en
TITLE_LANGUAGE_VIETNAMESE
:vi-VN
This is my xaml code:
...ANSWER
Answered 2018-Jul-09 at 11:39you have to bind to the Path Key
directly. The TextBlock
at DataTemplate
points directly to a single KeyValuePair
object, that you can access the property Key
directly.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install WPFLocalizationExtension
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page