-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting culture of days of the week #29
Comments
The |
What kind of data should I pass? |
Its a Basic Example: <xc:CalendarView.DayNameTemplate>
<DataTemplate>
<Label Text="{Binding .}"/>
</DataTemplate>
</xc:CalendarView.DayNameTemplate> Whatever the process is for providing culture based text would go in there. Or you could use DataTriggers or a converter with hardcoded values. |
So I made a convert, but the control doesn't pass in my convert!
|
I always thought this was optional, but it seems that if Here's the example you used but with Using <xCalendar:CalendarView.DayNameTemplate>
<DataTemplate x:DataType="{x:Type System:DayOfWeek}">
<Label Text="{Binding ., Mode=TwoWay, Converter={StaticResource DayConverter}}" />
</DataTemplate>
</xc:CalendarView.DayNameTemplate>
Hope this fixes your issue! |
It was just that! Thank you! |
Hi! Can you send me the files, to see how to implement it? Thanks |
I believe you change the value of either System.Globalization.CultureInfo.CurrentCulture = new CultureInfo("pt-br"); |
How to set the culture to pt-br so that the days of the week are in Portuguese?
The text was updated successfully, but these errors were encountered: