Hi,
I set global culture for my application to Vietnam like this in app.cs:
// Set default culture to VN
CultureInfo ci = new System.Globalization.CultureInfo("vi-VN");
System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
System.Threading.Thread.CurrentThread.CurrentCulture = ci;
Everything is OK, including format datetime, C1Schedule, C1MonthCalendar, they got format correctly but not C1DateTimePicker.
I finally found that coming from default template of this control, it's using DateTimeToStringConverter class to convert value selected in drop-down calendar to string. I can change parameter pass to converter for textbox to fix format to "dd/MM/yy" but i can not do the same way for TextBlock to show short date name as it's "ddd", result still be Mon for Monday, in Vietnamese Monday is THai.
So C1 have to fix Converter class to respect application culture setting or can i do anything as work-around.
Extract lines from template
<
StackPanel Name="dateText" Orientation="Horizontal" Margin="0"><TextBlock
Text="{Binding SelectedValue, RelativeSource={RelativeSource TemplatedParent},Converter={x:Static c1sched:DateTimeToStringConverter.Default},
ConverterParameter=ddd}"/>
<TextBox BorderThickness="0" Style="{x:Null}"
Validation.ErrorTemplate="{DynamicResource ovalValidationTemplate}">
<TextBox.Text>
<Binding Path="SelectedValue"
RelativeSource="{RelativeSource TemplatedParent}"
Converter="{x:Static c1sched:DateTimeToStringConverter.Default}"
ConverterParameter="dd/MM/yy"
NotifyOnValidationError="true"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<c1sched:DateTimeStringValidator Format="d" />
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>