c# - How to retrieve the selected date in window phone application? -
i developing window phone 7 application. new window phone 7 application development. have added datepicker control application. able select required date whichever want. want submit information in application through submit button along date selected through datepicker. unaware of how retrieve selected date. using following code
<toolkit:datepicker valuechanged="datepicker_valuechanged" margin="296,0,0,552" />
now have following function
private void datepicker_valuechanged(object sender, datetimevaluechangedeventargs e) { }
in above function how should retrive date selected application ? can please provide me code or link through can resolve above issue ?
you should give name datepicker:
<toolkit:datepicker name="mydate" valuechanged="datepicker_valuechanged" margin="296,0,0,552" />
then, in code-behind:
var date = (datetime) mydate.value;
Comments
Post a Comment