Articles in this section

How to Navigate Calendar Page Using Push Method in .NET MAUI Calendar?

In this article, you’ll learn how to navigate to the Syncfusion .NET MAUI Calendar control using the push method.

XAML
Create a CalendarPage with required calendar properties.

   <calendar:sfcalendar selectionmode="Range" rangeselectiondirection="Forward" selectionshape="Rectangle" startrangeselectionbackground="Transparent" endrangeselectionbackground="Transparent" selecteddaterange="{Binding DateRange, Mode=TwoWay}">
       <calendar:sfcalendar.headerview>
           <calendar:calendarheaderview shownavigationarrows="False">
               <calendar:calendarheaderview.textstyle>
                   <calendar:calendartextstyle fontsize="18" fontattributes="Bold">
               </calendar:calendartextstyle></calendar:calendarheaderview.textstyle>
           </calendar:calendarheaderview>
       </calendar:sfcalendar.headerview>

       <calendar:sfcalendar.monthview>
           <calendar:calendarmonthview>
               <calendar:calendarmonthview.headerview>
                   <calendar:calendarmonthheaderview>
                       <calendar:calendarmonthheaderview.textstyle>
                           <calendar:calendartextstyle fontsize="16">
                       </calendar:calendartextstyle></calendar:calendarmonthheaderview.textstyle>
                   </calendar:calendarmonthheaderview>
               </calendar:calendarmonthview.headerview>
           </calendar:calendarmonthview>
       </calendar:sfcalendar.monthview>

   </calendar:sfcalendar>

XAML

Use the button’s clicked event navigate to the calendar page.

       <button text="Navigate to Calendar page" backgroundcolor="Blue" clicked="OnButton_Clicked">

C#

       private async void OnButton_Clicked(object sender, EventArgs e)
       {
           await Navigation.PushAsync(new Calendar());
       }

image.png

image.png

Conclusion:
I hope you enjoyed learning about how to navigate calendar page using push method in .Net Maui Calendar.

You can refer to our .NET MAUI Calendar feature tour page to learn about its other groundbreaking feature representations and documentation to understand how to present and manipulate data.

For current customers, you can check out our 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 other controls.

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!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied