Forum General


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Disable weekend dates

AjithbabuAjithbabu Member ✭✭
edited January 2018 in General

Hi Guys, need help in datepicker xamarin forms.
Is there any ways to disable weekend dates in xamarin.forms datepicker?

Best Answer


  • JohnHJohnH GBMember ✭✭✭✭✭

    @ajithbabu No, not that I am aware of. You are limited by the lowest common denominator as to what each platform provides. I personally just rolled my own picker to handle this situation.
    Also, just a heads up, there is dedicated Xamarin.Forms forum.

  • AjithbabuAjithbabu Member ✭✭

    Can you please share the code? :/@JohnHair

  • AjithbabuAjithbabu Member ✭✭

    yes, just i noticed and after this I will follow xamarin.forms forum

  • LijuDanielLijuDaniel Member ✭✭
    edited October 2019

    I think Syncfusion is Paid one ; It's Possible with another control :smile: "XamForms.Controls.Calendar"

    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}
  • LijuDanielLijuDaniel Member ✭✭
    edited March 2020


Sign In or Register to comment.