Pick a Date with Telerik Date Picker for Xamarin

栏目: IT技术 · 发布时间: 3年前

内容简介:With the R2 2020 Release of Telerik UI for Xamarin we have extended our list of picker components with three new pickers:DatePicker,TimePickerandTimeSpan Picker.The DatePicker control for Xamarin provides the end users of your Xamarin.Forms application wit

With the R2 2020 Release of Telerik UI for Xamarin we have extended our list of picker components with three new pickers:DatePicker,TimePickerandTimeSpan Picker.

The DatePicker control for Xamarin provides the end users of your Xamarin.Forms application with the ability to easily and intuitively select a date via a customizable spinner dialog that lets them pick the month, day and year of the desired date.

You can use the date picker in a variety of different use cases when you need to select a date. For example, if you happen to be working on a booking/reservation app, your users will need to pick a date to make a reservation. Whatever the use case, our Date Picker control for Xamarin is here to help you speed up your development!

Pick a Date with Telerik Date Picker for Xamarin

In this blog post I will get you familiar with the Date Picker control. You can learn about all the features it has and how you can easily customize it using the control’s flexible styling API.

Spinner Format

The Date Picker for Xamarin allows you to use standard or custom date format strings through the SpinnerFormat   property. Depending on what format is set, the picker visualizes spinner controls with prepopulated values to be picked.

Examples with different SpinnerFormat values:

< telerikInput:RadDatePicker SpinnerFormat = "yyyy/MMM" />

< telerikInput:RadDatePicker SpinnerFormat = "yyyy/MMM//dd" />

< telerikInput:RadDatePicker SpinnerFormat = "MMM//dd" />

Pick a Date with Telerik Date Picker for Xamarin

Date Range

Date Picker allows you to define a date range and choose a date in between through the MinimumDate and MaximumDate properties. For example:

< telerikInput:RadDatePicker MinimumDate = "2020,01,01"

           MaximumDate = "2021,12,31"

           DefaultHighlightedDate = "2020,07,10" />

Pick a Date with Telerik Date Picker for Xamarin

DisplayString Format

This feature gives you the opportunity to define what string format the date will be displayed when a date from the picker is picked. Please keep in mind that the format set to DisplayStringFormat must be a valid date string format. For example we will use the following formats for SpinnerFormat and DisplayStringFormat:

< telerikInput:RadDatePicker SpinnerFormat = "MMM//dd"

           DisplayStringFormat = "yyyy/MMMM/dd" />

and the result is:

Pick a Date with Telerik Date Picker for Xamarin

Flexible Styling API

We have exposed the Flexible Styling API, which allows you to design the perfect date picker for your mobile application. You can style the date picker and the dialog appearance.

Pick a Date with Telerik Date Picker for Xamarin

For more information and sample demo please review ourStylingarticle.

Templates

In addition, we have exposed templates that give you the ability to fully customize the look of the Date Picker component. The dates are visualized inside a popup, so we also give you the option to customize its header and footer through the HeaderTemplate and the  FooterTemplate properties. For more details you can check ourdocumentationand SDK Browser Application and Telerik Sample Examples .

Tell Us What You Think

We would love to hear what you think about the Date Picker control and how we can continue to improve it. If you have any ideas for features to add, do not hesitate to share this information with us on our Telerik UI for Xamarin Feedback portal .

Don’t forget to check out the various demos of the control in our SDK Sample Browser and the Telerik UI for Xamarin Demos application.

If you have not yet tried the Telerik UI for Xamarin suite, take it out for a spin with a30-day free trial, offering all the functionalities and controls at your disposal at zero cost.

Happy coding with our controls and stay with us! If you are curious about TimeSpan Picker and its usage, we are excited to share more with you in an upcoming blog post. :)


以上所述就是小编给大家介绍的《Pick a Date with Telerik Date Picker for Xamarin》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

创业头条

创业头条

[美]兰德尔•莱恩(Randall Lane)及《福布斯》杂志编辑部 / 孙莹莹 / 浙江人民出版社 / 2015-6 / 54.90

[内容简介] 全民创业的浪潮中,如何抓住共享经济带来的机遇?没有营收模式还一直烧钱的公司,如何赢得投资人的青睐?一轮死、二轮死、N轮死的魔咒下,怎样才能成功活下来?面对数十亿美元的收购要约,创始人究竟应该如何抉择?没有资金又不懂技术,是否就无法分享互联网创业的红利?《创业头条》一书将为你揭秘上述问题的答案。 阅读《创业头条》一书你会发现,在硅谷最新崛起的互联网亿万富豪身上,有这样一......一起来看看 《创业头条》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具