SfDatePicker

Hi,

i would like to use the sfdatepicker  in my xamarin application UWP.

Do you have an example of this or something that can explain me haw to use your component in the platform of xamarin?

In UWP platform i have this exception 

Unable to cast object of type 'iMioRappEntry.UWP.iMioDatePicker_UWP' to type 'Xamarin.Forms.IRegisterable

and this is the code i wrote in UWP

[assembly: ExportRenderer(typeof(iMioDatePicker), typeof(iMioDatePicker_UWP))]
namespace iMioRappEntry.UWP
{
    public class iMioDatePicker_UWP : SfDatePicker
    {
        public iMioDatePicker_UWP()
        {
            this.FormatString = "M";
            DateTime = System.DateTime.Now;
        }
    }
}

Thanks in advance
Alberto C.

1 Reply

PA Paul Anderson S Syncfusion Team July 9, 2018 12:45 PM UTC

Hi Alberto, 
 
Thank you for using Syncfusion products. 
 
We have SfDatePicker control only in native UWP platform. SfDatePicker is not in Xamarin.Forms. so we have used renderer class in Xamarin.Forms UWP to access the native SfDatePicker. I have attached sample for SfDatePicker in Xamarin.Forms UWP platform. 
We also have our Syncfusion Knowledge base for the DatePicker using our SfPicker available in Xamarin.Forms. 
In that KB link it has been mentioned with step by step procedure for creating the DatePicker and at the end sample for the same has been provided, 
Please let us know if you have any concern. 
Regards, 
Paul Anderson 


Loader.
Up arrow icon