如何在XAML中的Xamarin Forms中设置ConverterCulture

Fru*_*erg 6 c# culture xaml converter xamarin

我在一个需要显示价格的项目中使用Xamarin Forms(XAML).要显示我正在使用的格式正确的价格,StringFormat例如:

<Label Text="{Binding Price, StringFormat='{}{0:C}'}"/>
Run Code Online (Sandbox Code Playgroud)

结果取决于应用程序运行的设备的文化(德语:€,美国:$,...).我的目标始终是运用德国文化.根据adrianbanks的回答,这在WPF中是可行的.我尝试使用这种方法

<Label Text="{Binding Price, StringFormat='{}{0:C}', ConverterCulture='de-DE'}"/>
Run Code Online (Sandbox Code Playgroud)

但结果如下XamlParseException:

Xamarin.Forms.Xaml.XamlParseException:无法赋值属性"CultureInfo":属性不存在,或者不可赋值,或者值和属性之间的类型不匹配

似乎Xamarin Forms不提供此功能.我搜索了很多,但没有找到解决方法如何在XAML中设置格式化程序的文化.没有实现我自己的转换器,有没有想解决我的问题?