ComponentOne Calendar for UWP
Calendar for UWP Task-Based Help / Adding Bolded Dates to the C1Calendar
In This Topic
    Adding Bolded Dates to the C1Calendar
    In This Topic

    Use the C1Calendar.BoldedDates property to add bolded dates to the C1Calendar control like the following:

    To write the code in Visual Basic:

    Visual Basic
    Copy Code
    ' add some bold days
    cal1.BoldedDates.Add(DateTime.Today.AddDays(2))
    cal1.BoldedDates.Add(DateTime.Today.AddDays(12))
    cal1.BoldedDates.Add(DateTime.Today.AddDays(22))
    cal1.BoldedDates.Add(DateTime.Today.AddDays(-2))
    cal1.BoldedDates.Add(DateTime.Today.AddDays(-12))
    cal1.BoldedDates.Add(DateTime.Today.AddDays(-22))
    

    To write the code in C#:

    C#
    Copy Code
    // add some bold days
       cal1.BoldedDates.Add(DateTime.Today.AddDays(2));
       cal1.BoldedDates.Add(DateTime.Today.AddDays(12));
       cal1.BoldedDates.Add(DateTime.Today.AddDays(22));
       cal1.BoldedDates.Add(DateTime.Today.AddDays(-2));
       cal1.BoldedDates.Add(DateTime.Today.AddDays(-12));
       cal1.BoldedDates.Add(DateTime.Today.AddDays(-22));
    
    See Also