Is there a datetimepicker class in Xamarin? - xamarin

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?

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

Related

Is it possible to change the IOS native date control's font size in Xamarin Forms?

I have a date picker control in my Xamarin Ios App and upon analysis we found that there are a lot of date entry related issues customers are facing. We want to see if we can change this date control's font size which could help resolve this issue.
Any date picket style changes (using the xaml or writing custom renderers) are applicable to the text box which shows the selected date but I want to be able to alter the size of the native date control as depicted in the picture.
Is there a way to do so? I am also fine exploring other free date controls if any. Any suggestion in this regard will really help.

Is it possible to view content of page renderer within xaml viewer

I am using Xamarin Forms as a primary framework, and I rely heavily on visual studio Xaml viewer. It came that I must use Page Renderers to get some native controls from Xamarin.iOS.
Is there anyway to display the native controls in Xaml viewer? What is the best way to design the native UI components within Xamarin?
Is there anyway to display the native controls in Xaml viewer?
Unfortunately , native controls can not display in Xaml Viewer.
What is the best way to design the native UI components within Xamarin?
If want to show native control in Viewer in IOS, just using IOS designer may be the best way to see native viewer, however this is not total viewer in Xaml Viewer.You also can just see part view in Xaml,so this also has a little regret.

How to make multi column picker in xamarin forms?

I need to create a picker which have 2 columns in xamarin forms like timepicker. I am using Picker control. Is there any way through which we can make multiple columns in Picker?
We've developed a two-column picker for Xamarin.Forms (Android and iOS).
Sample:
https://github.com/HorusSoftwareUY/MaterialDesignControlsPlugin#materialdoublepicker
Screenshots:
Android
iOS
We added this control to MaterialDesignControls NuGet (https://www.nuget.org/packages/Plugin.MaterialDesignControls/), where you can find other interesting controls with the material design look and feel.
Contributions are welcome!
Try Syncfusion Cascading control for Xamarin, they are free if your company earn less than $1 million dollar in revenue.

WP7 Datepicker page - custom background

I want to use the WP7 toolkit datepicker and have my own custom background on the picker page. There are several examples that show the use of a custom page to replace the existing selection mechanism e.g. http://windowsphonegeek.com/articles/wp7-datepicker-and-timepicker-in-depth--api-and-customization
But I don't want to do that - I simply want the picker page to have a different background (than the themed white or black) Can I do this easily. Or do I have to download the toolkit code and include that in my solution and adjust that?
In order to do that you will have to create a copy of the DatePickerPage.xaml file from the Silverlight for Windows Phone Toolkit in your application, change it to meet your requirements, and then on your DatePicker control set the PickerPageUri proprety to the new DatePickerPage.xaml

windows phone toolkit time picker convert to military time

Im currently using the available toolkit for windows phone. By using the time picker, I want to change it to military time. But I dont know to customize it.
So I came up with creating my own time picker by using the LoopingSelector, but I dont know how will I implement it along with appbar, since this was only a popup.
What is the strategic way to recreate this timepicker along with appbar?
Given that the underlying type is still the same (DateTime), then I think that rather than creating a new TimePicker, you could just implement a custom picker page as described in WP7 DatePicker and TimePicker in depth | API and Customization on WindowsPhoneGeek.com. Richard Griffin also has a post that covers the same topic for DatePicker.

Resources