Is there a datetimepicker class in Xamarin?

本小妞迷上赌 提交于 2019-12-02 03:46:27

问题


I am currently using the Xamarin Forms DatePicker and the TimePicker in the portable project of a portable app. But is there a combined control that lets you choose date and time at once (like DateTimePicker in Windows forms)? Please have a look at the iOS Settings > General > Date & Time (http://www.iphonefaq.org/images/archives/pangu-date.jpg).

Or is there anything I am missing on how to create such a control?


回答1:


There is not a "stock" DateTimePicker within the controls for Xamarin.Forms.

You could create your composite control using DatePicker and TimePicker within modal popups and display the Date & Time chosen in Labels...

Or create your own Form control using custom renders:

  • Customizing Controls on Each Platform

  • Xamarin.Forms Widget/Control Listing



来源:https://stackoverflow.com/questions/36661863/is-there-a-datetimepicker-class-in-xamarin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!