locked
How to add timepicker? RRS feed

  • Question

  • Hello All,

    I want to add a timepicker to my app but it is only available to Windows Runtime and not to Windows Phone Silverlight.
    Do you know any other on how to add a timepicker?

    Thanks,
    Yashtir Gopee


    Monday, July 20, 2015 8:43 AM

Answers

All replies

  • Hi Yashtir,

    You can use the windows phone toolkit datepicker.

     xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"

    and

    <toolkit:DatePicker  Value="{Binding date}"/>


    • Marked as answer by Yashtir Gopee Monday, July 20, 2015 11:12 AM
    Monday, July 20, 2015 9:43 AM
  • Hello Andy,

    I get the following message:

    Monday, July 20, 2015 10:26 AM
  • Thanks Andy,
    I got it, actually, 

    .Primitives

    was the one causing the error. It should have been simply 

    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"

    Monday, July 20, 2015 11:12 AM