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

When Changing Months, the days do not update properly #2

Closed
zawadzkip opened this issue Jul 14, 2016 · 7 comments
Closed

When Changing Months, the days do not update properly #2

zawadzkip opened this issue Jul 14, 2016 · 7 comments

Comments

@zawadzkip
Copy link

zawadzkip commented Jul 14, 2016

image
(Start Month)
image
(End Month)

When I navigate from month to month, the days do not update properly. For example, I started in August of 2016, and the Dates/Days are correct. However, when I use the navigation arrow to go to the month of July, the days are not correct. July 13th for example, should be on a Wednesday but it is not.

@rebeccaXam
Copy link
Owner

Thanks for reporting the issue. I can reproduce this problem in Windows UWP in release mode. Did you see this problem on any other platform?

I looked into it and somehow the ExportRenderer is not working.
Try adding this to your UWP projects AssemblyInfo.cs file:

[assembly:Xamarin.Forms.Platform.UWP.ExportRenderer(typeof(XamForms.Controls.CalendarButton), typeof(XamForms.Controls.Windows.CalendarButtonRenderer))]

@zawadzkip
Copy link
Author

@rebeccaXam I emailed you back before reading the assembly code. What will I have to do to make this work for iOS and Android? I'm guessing...

[assembly:Xamarin.Forms.Platform.iOS.ExportRenderer(typeof(XamForms.Controls.CalendarButton), typeof(XamForms.Controls.iOS.CalendarButtonRenderer))]

[assembly:Xamarin.Forms.Platform.Android.ExportRenderer(typeof(XamForms.Controls.CalendarButton), typeof(XamForms.Controls.Android.CalendarButtonRenderer))]

@zawadzkip
Copy link
Author

After re-testing, the issue does not exist on android but does exist on iOS.

@zawadzkip
Copy link
Author

@rebeccaXam Just wanted to confirm that the issue still exists on iOS, even after updating to 1.0.4

@Teviko
Copy link

Teviko commented Feb 16, 2017

In 1.0.7, this issue still exists on iOS release build. When changing month, the days do not update properly. But it is fine in iOS debug build.
Although I can still enable debugging option in the iOS release build, to deploy a larger app and dismiss this issue.
Hope someone has a solution to fix this issue.

@Teviko
Copy link

Teviko commented Feb 16, 2017

#10

@snem1216
Copy link

snem1216 commented Nov 1, 2020

The fix that was shown in the README did not work for me, I had to do this instead in the platform project's AssemblyInfo.cs:
[assembly: Xamarin.Forms.ExportRenderer(typeof(XamForms.Controls.CalendarButton), typeof(XamForms.Controls.<Platform>.CalendarButtonRenderer))]
ExportRenderer is no longer in the platform-specific namespaces it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants