windows phone toolkit time picker convert to military time - windows-phone-7

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.

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.

How to populate Picker items before open, using Xamarin.Forms

Using Xamarin.Forms, how do I populate a Picker with items, immediately before the Picker opens?
We have a number of pickers on the same page and it would be inefficient to populate all items upfront, as some of the queries are expensive. For reference, I'm trying to get this working on Xamarin.Android first, and am using the latest stable version - 1.2.36257 at the time of writing.
I've tried:
Focused event - This almost works, but changes to Items are not applied until the next time the Picker opens.
TapGestureRecognizer - The Tapped event doesn't seem to be fired. Perhaps it doesn't work with a Picker.
There's nothing that the Xamarin.Forms Picker exposes from what I can see either, that would allow you to achieve what your wanting.
TapGesture's can be troublesome. For instance I quickly tried it on WindowsPhone, and that is not recognizing the TapGesture either. Your also find some different behavior with different controls as well - with the same response not being uniform across platforms.
I tried hooking into the Picker PropertyChanged / PropertyChanging, and this has the outcome exactly the same as attempting to hook into the Focused event handler that you experienced, with it only working after the picker has initially been displayed.
The only way around this would be to write a custom renderer to achieve what you want to do.
Within that, you could then expose custom events such as OnBeforeAppearing, that would allow you to then pre-load the picker with the items you need from the page at time of use.

Windows Phone Calendar - Month view

I want to create a small app for Windows Phone, and it will based on calendar, so people can input dates etc. But I can't find control which provides me calendar month view. I only saw that there is DatePicker, but that is not exactly what I'm looking for.
Is there control like that for Windows Phone?
Thanks,
Ned
Looks like this might be a good calendar control for your needs: https://wpcontrols.codeplex.com/
Maybe more sophisticated but not for free (99$): Telerik's Controls
http://www.telerik.com/products/windows-phone/overview/all-controls.aspx
But'll get a lot of controls all out of a single source ;)

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

Best route to creating a Calendar based Date picker for Cocoa?

I'd like to implement a date picker using a calendar. Before I go ahead and try to build one, is there something that does this already?
I've looked at the date picker in Interface Builder and it's pretty much just a text field as far as I can tell. And looking (albeit quickly) through the developer docs, it seems there's plenty of date related functionality available, but not very much in the way of an interface. So If I do go ahead and build my own, what's the best line of attack
I've already built what i need in HTML/CSS and Javascript with jQuery for a website I'm working on, so my initial thought was that I could use a web view and display that, assuming there's some way to detect events happening inside a web view. But this feels a bit cheap to me. What would be the recommended route?
Use NSDatePicker. You can change it to be a Calendar or Clock, or both, using the Inspector:
(source: quicksnapper.com)
This is what it looks like:
(source: quicksnapper.com)

Resources