Silverlight localization with reactive structure. How?

So, what is best for implementing Silverlight localization with Reactive Framework (Rx) to change the user interface on the fly? I would be very grateful for the examples.

Here's an example of a user interface change on the fly. But I canโ€™t understand how this works.

+4
source share
2 answers

Localization can be made pretty simple in .NET or as complex as you like.

An easier way would be to create a localized resource DLL for each supported language, and then set CultureInfo.CurrentUICulture for the user selected or detected language, return to the default (preferably in English) if the language isnโ€™t supported.

And adjust the observer in case of a change in language.

Some programs require a reboot, others just redraw (as it seems in the case of the sample that you provided).

+1
source

Paulo is right, see Localizing Silverlight-Based Applications . This is specifically for code localization. If you want to localize Xaml, see How to Make XAML Content Localizable.

Using Rx here will not do you any good if you do not want to reinvent the wheel. Localization is built into Silverlight. It will be on the fly, even if the resources are on the server, they are cached after downloading Xap or satellite assemblies.

0
source

Source: https://habr.com/ru/post/1302518/


All Articles