Setting bound nullable date not working after Q2 release

3 posts, 1 answers
  1. Paul Ridden
    Paul Ridden avatar
    35 posts
    Member since:
    Mar 2007

    Posted 16 Jul 2010 Link to this post

    Hi

    I have a Date Picker that is bound to an object with a Nullable<DateTime> property.

    Prior to Q2 when I entered a value in the picker, then clicked a 'Clear' button that set the DataContext to a new instance of my object (which has a null DateTime by default), the date would be cleared.

    After the Q2 release the date remains and is not cleared properly.

    Thanks
    Russell Mason
  2. Answer
    Tyree
    Tyree avatar
    105 posts
    Member since:
    Dec 2006

    Posted 16 Jul 2010 Link to this post

    Are you using SelectedDate or SelectedValue? When using SelectedDate I had the same problem but if you use SelectedValue it is Nullable and worked fine for me
  3. DevCraft banner
  4. Paul Ridden
    Paul Ridden avatar
    35 posts
    Member since:
    Mar 2007

    Posted 19 Jul 2010 Link to this post

    Excellent, that worked. Thanks for the tip.

    Russell Mason
Back to Top