where does IValueConverter.Convert source the CultureInfo parameter from?
-
25-09-2019 - |
문제
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.
해결책
Since this is intended for your user interfaces, WPF uses CultureInfo.CurrentUICulture, not CurrentCulture.
제휴하지 않습니다 StackOverflow