ME-MarvinE / XCalendar

A plugin for .NET providing an API for representing a calendar along with fully customisable calendar controls for Xamarin Forms and .NET MAUI
MIT License
300 stars 36 forks source link

Month Translations? #149

Closed AndreaGuarducci closed 1 year ago

AndreaGuarducci commented 1 year ago

Hello, thx for u'r work, is there a way to manually translate month's names?

ME-MarvinE commented 1 year ago

Yes, you can use the NavigationViewTemplate property of the CalendarView and use a NavigationView inside the ControlTemplate.

The NavigationView has all the properties of a Label so you would do the same thing as you would do when manually adding a translation for a Label element.

Remember to set the ForwardsArrowCommand and BackwardsArrowCommand if you want to use those. I believe a relative binding with mode 'TemplatedParent' would be easiest.

A list of the NavigationView's properties can be found on the wiki page here.

Related questions: #29, #42

AndreaGuarducci commented 1 year ago

TY!