You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update internalization code to handle StringFormat and user input in binding in OS current culture format:
// Ensure the current culture passed into bindings
// is the OS culture. By default, WPF uses en-US
// as the culture, regardless of the system settings.
FrameworkElement.LanguageProperty.OverrideMetadata(
typeof (FrameworkElement),
new FrameworkPropertyMetadata(
XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
Original report by sevenate (Bitbucket: sevenate, GitHub: sevenate).
Update internalization code to handle StringFormat and user input in binding in OS current culture format:
// Ensure the current culture passed into bindings
// is the OS culture. By default, WPF uses en-US
// as the culture, regardless of the system settings.
FrameworkElement.LanguageProperty.OverrideMetadata(
typeof (FrameworkElement),
new FrameworkPropertyMetadata(
XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
See also: http://www.nbdtech.com/Blog/archive/2009/03/18/getting-a-wpf-application-to-pick-up-the-correct-regional.aspx
and only for silverlight: http://blogs.imeta.co.uk/jyoung/archive/2009/10/02/771.aspx (just for creating docs)
The text was updated successfully, but these errors were encountered: