Hi,
i want to bind the formating to property in the ViewModel but it doesn't update. Is it possible to set the default formatting to the current culture?
XAML
<sfPic:SfDatePicker ShowHeader="False" Format="dd_MM_yyyy" />
<sfPic:SfDatePicker ShowHeader="False" Format="{Binding CultureDateFormat}" />
ViewModel
public string CultureDateFormat
{
get
{
string pattern = System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern.Replace(".", "_");
return pattern;
}
}
Result
Thanks,
Andreas