yurkinh / Plugin.Maui.Calendar

.NET MAUI port of XF calendar plugin
MIT License
108 stars 11 forks source link

Switch CalendarLayout in runtime #41

Closed marcustindab closed 2 months ago

marcustindab commented 4 months ago

Hi,

First and foremost - great job with the plugin!

Is it possible to switch WeekLayout at runtime, or is this not a tested/verified feature?

For example; switching between week or month views.

yurkinh commented 4 months ago

Hi @marcustindab Thanks for the kind words. Currently, this functionality is not available but I plan to add this in the next major version (2.0.0)

yurkinh commented 4 months ago

@marcustindab Check please CalendarLayout property I think that's what you are looking for)

marcustindab commented 4 months ago

Yeah, I tried to use that property but it did not work properly... The rendering of the view lagged behind. Perhaps I need to make further adjustments?

Also another question on the topic; is it possible to bind another Event-source to the calendar, besides the EventCollection? I would like to use the same structure as decribed in the .Net Maui Grouped Collection documentation, like the following example:

public class AnimalGroup : List<Animal>
{
    public DateTime Date { get; private set; }

    public AnimalGroup(DateTime date, List<Animal> animals) : base(animals)
    {
        Date = date;
    }
}
yurkinh commented 4 months ago
  1. Have toy tried this in debug or release mode?
  2. Currently no. This is needed to correctly render events and related stuf
yurkinh commented 3 months ago

Hi @marcustindab Check please latest v1.1.6