lilcodelab / Xamarin.Plugin.Calendar

Calendar plugin for Xamarin.Forms
MIT License
260 stars 60 forks source link

[Bug] Calendar days are invisible #140

Open RaNsr91 opened 1 year ago

RaNsr91 commented 1 year ago

Describe the bug The calendar gets invisible when changing CalendarLayout at runtime

To Reproduce Steps to reproduce the behavior:

  1. Bind CalendarLayout to a property in the ViewModel
  2. Set the default value to WeekLayout.Month
  3. Add a command that changes the ViewModel property from WeekLayout.Month to WeekLayout.Week
  4. The calendar days get invisible
  5. If not, try to execute the command one or two more times (Sometimes other calendar properties changes cause the calendar to render correctly).

Expected behavior The calendar changes its layout from Month to Week and it's visible

Screenshots Screenshot_20221212_165159_com calendarsample app 1 Screenshot_20221212_165225_com calendarsample app 1

Version information:

vp1512 commented 1 year ago

I am also having the same issue. Any solution? @RaNsr91

image

asarlidou commented 11 months ago

I have similar issue on the iPhone as well when using the week layout. It works on the simulator but it is invisible on physical phone

RaNsr91 commented 11 months ago

I am also having the same issue. Any solution? @RaNsr91

image

Unfortunately, I had to use another calendar plugin that doesn't support changing the layout

holecekp commented 8 months ago

Invisible days are also a very common problem on Windows even without changing the layout. In that case, the calendar does not like certain other controls being on the same page (https://github.com/lilcodelab/Xamarin.Plugin.Calendar/issues/130#issuecomment-1940459055).