Documentation

This control is easy to use, I promise! First, add a reference to the DLL file. Next, include it in your XAML page by adding
            xmlns:timePicker="clr-namespace:win8TimePicker;assembly=win8TimePicker">

in the "phone:PhoneApplicationPage" section. Next, create the control using something like this:
            <timePicker:timeWheel Grid.Row="1" Width="480" Height="480" x:Name="TimePicker"                                       TimeChangedEvent="TimePicker_TimeChangedEvent"/>

The "TimeChangedEvent" specified above will be called whenever the user changes one of the sliders. An example implementation of this event is as follows:
        private void TimePicker_TimeChangedEvent(object sender, win8TimePicker.TimeChangedEventArgs e)
        {
            MessageBox.Show("You have choosen " + e.Hour.ToString() + ':' + e.Minute.ToString());
        }

You can get the selected hour and minute using the following:
            this.TimePicker.selectedHour;
            this.TimePicker.selectedMinute;

Finally, you can manually set the picker's time using this:
             this.TimePicker.setTime(10, 30);

This will set the time to 10:30 in the morning. That's all, enjoy the library! Please feel free to check out my other projects at http://awhite.us, and email me with comments at alex@awhite.us. Thanks!

Last edited Jul 2, 2013 at 12:17 AM by toaster99, version 1

Comments

No comments yet.