views:

92

answers:

1

I'm going through some silverlight apps and reviewing date formatting to make sure the presentation is appropriate for the viewer.

with an implementation of IValueConverter, where does the culture parameter come from in the Convert/ConvertBack functions? it seems to not be CultureInfo.CurrentCulture which I think is what I want.

A: 

Since this is intended for your user interfaces, WPF uses CultureInfo.CurrentUICulture, not CurrentCulture.

Reed Copsey
so it's meant for menus or buttons or whatever, and not date or money formatting?
lincolnk
Is CurrentUICulture used for resource files that would provide a language translation? Why is it used in the IValueConveter as the default?
Kevin