How to enable or disable past dates in the .NET MAUI Calendar?
In the Syncfusion .NET MAUI Calendar control, you can enable or disable the past/previous dates by changing the SfCalendar’s EnablePastDates property to true or false, as shown in the following code sample.
XAML
<calendar:SfCalendar x:Name="sfCalendar" EnablePastDates="False" />
By default, the EnablePastDates property is true.
Output:
When EnablePastDates is True:
When EnablePastDates is False:
Conclusion
Hope you enjoyed learning about how to enable or disable the past dates in the .NET MAUI Calendar (SfCalendar).
You can refer to our .NET MAUI Calendar’s feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Calendar documentation to understand how to present and manipulate data.
For current customers, you can check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our .NET MAUI Calendar and other .NET MAUI components.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!