I need to support UI language change through the application menu. The texts are localized using resource files (similar to approach 1 here)
if I set the Thread.Cu
A way that I tried and works well is this method, to call after the assignment of the property in the ViewModel:
private void AllowUiToUpdate()
{
var frame = new DispatcherFrame();
var dispatcherOperationCallback = new DispatcherOperationCallback(delegate
{
frame.Continue = false;
return null;
});
Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Render, dispatcherOperationCallback, null);
Dispatcher.PushFrame(frame);
}