I hope many use AvalonsControlLibrary in their WPF projects 8) , if not, do have a look! It has got really very useful WPF Controls – Thanks to Marlon 🙂
Today I did a small update to the TimePicker control. I added another Property called CurrentlySelectedTime which can be used to get the current time in the TimePicker control in String of format h:m:s and also set the time by giving the time as a String in the format h:m:s
For example,
timePicker.CurrentlySelectedTime = “12:34:56”;
and,
MessageBox.Show(timePicker.CurrentlySelectedTime);
This addition totally came out of my personal need for my Project. So, I am not sure how far it would be useful for you ;). But, the logic is there in the source code now so that you could tame it to the format you want, may be add AM and PM and change to 12 hr format 8)
Marlon will soon update the updated source code at CodePlex, but until then you can download it here