|LocalizerSetCulture Method |
Changes the culture of the current thread.
DW.SharpTools (in DW.SharpTools.dll) Version: 18.104.22.168 (22.214.171.124)
public static CultureChangedArgs SetCulture(
bool setXamlCulture = true
- Type: System.GlobalizationCultureInfo
The new culture to set.
- setXamlCulture (Optional)
- Type: SystemBoolean
Indicates of the culture of the FrameworkElement should be set to. This can be done just once at the application lifetime.
The object containing all data about the culture change.
If setXamlCulture is set to true and it was set already before, an LanguageSwitchException
is set in the result data. The language in XAML bindings are not changed then. The XAML culture can be set just once in the application lifetime.
The XAML culture is used in StringFormat
like 'G' or similar. Consider using an IValueConverter