Saving/Restoring view state works strange with Russian language.

May 19, 2014 at 11:58 AM
I am saving/restoring view state using code from this post . The problem is that it does not work correctly when I am using Russian localization(I also tried Chinese, Japanese, Malaysian, English languages, everything works fine).

I captured short video from my app:
Source code:

Then, as an experiment, I took example from blog post and modified it a bit (I added resource files for localization and x:Uid stuff to XAML elements).
I captured another one short video:
Source code:

Can anybody explain me this magic?
Thanks in advance.
May 19, 2014 at 7:18 PM

I would invite you to propose an issue on the Issues section, and vote it so the P&P Team would look into it and they could keep track of every issue and suggestion, giving more priority on fixing the most voted ones.

However, the first shared video ma not show the app suspending and restoring. Have the Russian language worked at least once when saving the state?

Gabriel Ostrowsky
May 21, 2014 at 3:11 PM
scrollViewerOffsetProportion = double.Parse(pageState["ScrollViewerOffsetProportion"].ToString(), CultureInfo.InvariantCulture.NumberFormat);
_scrollViewerOffsetProportion = (double)pageState["ScrollViewerOffsetProportion"];
in View's(code-behind) LoadState method fixed my problem.
Marked as answer by TocoToucan on 5/21/2014 at 8:12 AM