Open michelbahia opened 6 years ago
there is an option to specify "WeekdaysFormat". Unfortunately, when you look at the usage of it, you can see: start.ToString(WeekdaysFormat)
where start
is DateTime
. As you may know, date formats don't support only first letter of a day.
If I were you, I would download the repo, add each project to your solution and update the method ChangeWeekdays()
(line 170) to match your requirements.
I even did it, following your guidance. But now the background image on the special days does not appear as it appeared before, even when the image is set. :(
Not sure If I understood you correctly, but I've just checked on Android and it looks like this:
Unfortunatelly, I've made a mistake and there is another method which updates the "Calendar".
So what I did is: I changed ChangeWeekdays()
method and ChangeCalendar(CalandarChanges changes)
.
You can find the sample code in forked repo.
I did it, thank you very much for your help. Now for some reason the image that I assign the special dates does not appear in the calendar. Do you have any idea what that might be?
Hmm. Is there a chance for a sample repo? It will be easier to find out why this is happening 🙂
Actually the problem is that when I remove the package and copy and paste the project into git, it unconfigures several things including the image of the special date that does not appear
Strange. What I did is: clone the source code of this package -> remove the samples & windows phone dirs -> move the package folders to my solution folder -> add needed references (in iOS to iOS calendar, in Android for Android calendar etc.). It worked in my case and I was also having special dates with images. Don't know how to help you 🤔
success, I managed to solve: dancer: Now the only problem is that the image of the special date is always visible, even when it is from the previous month. For example: 31/10 is a special date and appears on the November calendar, should be visible only in the month of the date. :(
Sorry. I've missed your answer 😔 Yes I can see it in my calendar too, unfortunately, this is how the library works. It sucks, but this is how it is implemented. You can take a look at the code yourself and check if it is possible to change it. I can't promise if I have time in the next days to help you
I was able to resolve the code by refactoring! thank you!
Is it possible to display only the first letter of the day of the week?