I have a Window with the following namespace
xmlns:sysglb=\"clr-namespace:System.Globalization;assembly=mscorlib\"
that contains a textbox
found similar suggestion in this topic: WPF StringFormat={0:C} showing as dollars
my application was working when I launched it and diplayed values with correct culture formatting, but designer could not find CultureInfo.CurrentUICulture and crashed
I used static property in helper class
public static class WpfHelpers
{
public static CultureInfo CurrentCulture { get; set; }
}
and used it in bindings: ConverterCulture={x:Static helpers:WpfHelpers.CurrentCulture}
I set that property on Application startup
WpfHelpers.CurrentCulture =
Thread.CurrentThread.CurrentCulture =
Thread.CurrentThread.CurrentUICulture = new CultureInfo ...