Answered by:
dataform and localization problems of autogenerated controls

Question
-
Hi
I have a SL application. It's localization is set (i.e. to 'pl-pl'). One of the application's pages has DataForm on it. DataForm controls are auto-generated. Every control which is auto-generated - out of a sudden - gets the default ('en-en') localization.
I can check the application's localization before and after the "OnAutoGeneratingField" event and it is proper. So why the controls are created as localized inproperly?
Wednesday, July 14, 2010 8:27 AM
Answers
-
Hi,
Yes, setting the lauguage to localized language is the current way to make it work properly. Please check:
http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.language%28VS.95%29.aspx
http://msdn.microsoft.com/en-us/library/cc838238%28VS.95%29.aspx
If you consider it should be enhenced, please feel free to suggest a feature on http://connect.microsoft.com
Thanks.
Thursday, July 15, 2010 11:04 PM
All replies
-
it looks like somebody made an assumption that every page should be "en-us" in SL. Now, on every page I need to manually change it:
this.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.Name);
It is understandable that each page should look the same in designer (development time), but why at the runtime? For me it's a bug.
Thursday, July 15, 2010 4:11 AM -
Hi,
Yes, setting the lauguage to localized language is the current way to make it work properly. Please check:
http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.language%28VS.95%29.aspx
http://msdn.microsoft.com/en-us/library/cc838238%28VS.95%29.aspx
If you consider it should be enhenced, please feel free to suggest a feature on http://connect.microsoft.com
Thanks.
Thursday, July 15, 2010 11:04 PM -
There is no silverlight feed at connect.microsoft.com.
Tuesday, July 20, 2010 3:22 AM -
Hi
please help me i have the same problem do you find the solution????
- Edited by CDMC Tuesday, July 23, 2013 5:20 PM help
Tuesday, July 23, 2013 5:19 PM