Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar ignores value of NavigationLowerBound #2

Closed
pjdavid opened this issue Jan 17, 2024 · 5 comments
Closed

Calendar ignores value of NavigationLowerBound #2

pjdavid opened this issue Jan 17, 2024 · 5 comments

Comments

@pjdavid
Copy link

pjdavid commented Jan 17, 2024

Hi

I'm using the XCalendar in my Xamarin.Forms project.

I'm trying to set the values of 'NavigationLowerBound' and 'NavigationUpperBound' as part of initialising the calendar but the calendar is ignoring these values until an event forces the calendar to update, date selection or navigation. Once any of these events occurs the calendar behaves as expected and invalidate dates outside the 'NavigationLowerBound' and 'NavigationUpperBound' range.

Thanks.

@ME-MarvinE
Copy link
Owner

ME-MarvinE commented Jan 17, 2024

Are you able to provide your initialisation code and XAML?

Is the Calendar being initialised in ViewModel or code-behind?

What version of XCalendar are you using?

@pjdavid
Copy link
Author

pjdavid commented Jan 17, 2024

The calendar is being initialised in my ViewModel and I'm using version 4.5.2, here is the code:

public Calendar<CalendarDay> MyCalendar { get; set; } = new Calendar<CalendarDay>()
        {
            SelectionType = SelectionType.None,
            SelectionAction = SelectionAction.Replace,
            NavigationLowerBound = DateTime.Today,
        };
    Thanks.

@ME-MarvinE
Copy link
Owner

@pjdavid

Moved to the main XCalendar repo: ME-MarvinE/XCalendar#171

@pjdavid
Copy link
Author

pjdavid commented Apr 3, 2024

Hi mate.

Sorry for the very late reply. Moved away from the project for a while.

I'm not sure the issue issue is fixed and the new version 4.6.0 it seems to made it a lot worse, or maybe I'm doing something wrong. Now all DayView are displaying today's and if I try to go to a previous date it takes me to 1999 (Please see attached).

Regards,
Paulo
Screenshot_20240403-091208

Screenshot_20240403-093736

@ME-MarvinE
Copy link
Owner

Oops, forgot to lock the conversation. As mentioned in my previous comment, I've moved this issue to the main XCalendar repo.

ME-MarvinE/XCalendar#171

Repository owner locked and limited conversation to collaborators Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants