Monday, June 8, 2009

DatePicker control

  • This enables you to select a date by either typing it into a text field or by using a drop-down Calendar control.
  • When you type a date directly into a text field, the Text property of the DatePicker control gets set.
  • This is available in the Toolbox of any Silverlight application and you can use the drag and drop approach to add it to your XAML code.
  • The DateValidationError event is raised if the DatePicker cannot convert whatever you typed to a valid date.
  • Normally, this causes an exception, but you can set the ThrowException property to false in an event handler and prevent an exception from being raised.

No comments:

Post a Comment