Calendar for WPF | ComponentOne
Behavior / Disable Adjacent Dates
In This Topic
    Disable Adjacent Dates
    In This Topic

    Calendar provides adjacent dates functionality. Adjacent dates are dates belonging to the previous and next month, other than the current month. By default, the Calendar control shows adjacent dates in the calendar.

    Calendar showing adjacent dates

    To hide the adjacent dates in the Calendar control, you can set the ShowAdjacentDay property to false.

    XAML
    Copy Code
    <c1:C1Calendar x:Name="calendar" ShowAdjacentDay="False" HorizontalAlignment="Left" VerticalAlignment="Top"> </c1:C1Calendar>
    

    This is how the Calendar looks when the adjacent dates are disabled.

    Calendar with hidden adjacent dates