Hello there, I'm trying to disable certain days, like weekends, from a datepicker, but it seems I can only set min and max selectable dates. Is there anyway to achieve that? or is there any compatible XForms Nuget Package that allows me to do it?
any update?
I think Syncfusion is Paid one ; It's Possible with another control "XamForms.Controls.Calendar" github.com/rebeccaXam/XamForms.Controls.Calendar/wiki
Here you can add special dates in this control; if it is SAT or SUN then set your special dates and its property Selectable = false
for (DateTime i = MinimumDate; i < MinimumDate.AddMonths(2); i = i.AddDays(1)) { if ((i.DayOfWeek == DayOfWeek.Saturday) || (i.DayOfWeek == DayOfWeek.Sunday)) { SpecDate.Add(new SpecialDate(i) { TextColor = Color.Gray, Selectable = false, FontSize = 10, BackgroundPattern = new BackgroundPattern(1) { Pattern = new List { new Pattern{ WidthPercent = 1f, HightPercent = 1f, Color = Color.Transparent,Text = "", TextSize =11, TextAlign=TextAlign.CenterBottom} } } }); } }
If you are eligible for a Community license, then you can get all the Syncfusion controls free of charge.
https://www.syncfusion.com/products/communitylicense
Answers
any update?
I think Syncfusion is Paid one ; It's Possible with another control
"XamForms.Controls.Calendar"
github.com/rebeccaXam/XamForms.Controls.Calendar/wiki
Here you can add special dates in this control; if it is SAT or SUN then set your special dates and its property Selectable = false
If you are eligible for a Community license, then you can get all the Syncfusion controls free of charge.
https://www.syncfusion.com/products/communitylicense