Strypper / mauisland

MAUIsland 🏝️ is the number 1 controls gallery for .NET MAUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ XCalendar

Strypper opened this issue Β· comments

Scope

A plugin for .NET providing a Calendar API and DateTime extensions.

UI controls are available for Xamarin Forms and .NET MAUI.

References

Original source

Public API Changes

xmlns:xc="clr-namespace:XCalendar.Maui.Views;assembly=XCalendar.Maui"
<ContentPage
    x:Class="MauiApp1.MainPage"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:xc="clr-namespace:XCalendar.Maui.Views;assembly=XCalendar.Maui">
    
        <xc:CalendarView
            Days="{Binding MyCalendar.Days}"
            DaysOfWeek="{Binding MyCalendar.DayNamesOrder}"
            NavigatedDate="{Binding MyCalendar.NavigatedDate}"/>

</ContentPage>

Intended Use-Case

  • Ability to use the Calendar from code without referencing a UI framework.
  • Ability to use and reference your own models by implementing ICalendarDay.
  • Ability to set the number of rows shown or have it be automatic.
  • Ability to change the start of the week to any day of the week.
  • Ability to select single, multiple or a range of dates.
  • Ability to restrict navigation to a range of dates and define how the calendar loops.
  • Ability to specify your own custom order of days of week at any length, with support for duplicates and non-chronological orders.