Completed
Last Updated: 06 Nov 2020 14:52 by ADMIN
Release 2020.3.1106 (R3 2020 minor release)
Robert
Created on: 22 Oct 2020 07:04
Category: DatePicker
Type: Bug Report
0
DatePicker: [UWP] Date cannot be selected using click gesture in Release mode
In Release mode: Clicking on any of the numbers does nothing.

In Debug mode, clicking the numbers works as expected:
2 comments
ADMIN
Didi
Posted on: 23 Oct 2020 07:35

Hello Robert,

Thank you for the provided information. I have tested on my side when registering the Telerik.XamarinForms.DataControlsRenderer.UWP.ItemTapCommand assembly and it seems this fix the issue with click gesture. 

I have updated the internal logged item based on your findings. 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Robert
Posted on: 22 Oct 2020 14:54

OK, we found it. Another case of a missing assembly stripped by the native tool chain build. These are all three that seem to be required for RadDatePicker. The first (ItemTapCommand) is what's causing the clicks not to work, the other two are for drawing borders around the form control and inside the spinner popup.

var assembliesToInclude = new List<Assembly>
{
    typeof(Telerik.XamarinForms.DataControlsRenderer.UWP.ItemTapCommand).GetTypeInfo().Assembly,
    typeof(Telerik.XamarinForms.Primitives.RadBorder).GetTypeInfo().Assembly,
    typeof(Telerik.XamarinForms.PrimitivesRenderer.UWP.BorderRenderer).GetTypeInfo().Assembly
};
 

Xamarin.Forms.Forms.Init(eassembliesToInclude);