DatePicker control issue on Windows Phone 7 RRS feed

  • Question

  • Hi,
     Our datepicker control should be popuplated with current date when mobile page loads. For this we have set datepicker's "Value" property to DateTime.Now within "PhoneApplicationPage_Loaded" event. Now when page loads datepicker control is populated with current date time. But now when user click's the datepicker control to change current date time a default page is loaded and here we edit the date (and this is the defualt behaviour). But here the issue is, when the datepicker edit page is unloaded, again "PhoneApplicationPage_Loaded" event is executed and this makes datepicker's "Value" property to DateTime.Now, overriding newly edited datetime.
    How can we work on this resolve this issue.


    Friday, November 12, 2010 9:36 AM