locked
DatePicker control show last selected date. RRS feed

  • Question

  • I have a silver light control containing a DatePicker control.

    Once I select the value in DatePicker control, It will always show the last selected date. I try will "ClearValue()", "SelctedDate"=null etc. but still the same problem exist.

    i also after deleting the Internet Explorer temporarily files but no success.

    Monday, January 3, 2011 8:01 AM

Answers

  • Hi,

    Please try this.

    private void Button_Click(object sender, RoutedEventArgs e)

    {

    this.datePicker1.Text = "";

    }

    Monday, January 3, 2011 8:12 AM

All replies

  • Hi,

    Please try this.

    private void Button_Click(object sender, RoutedEventArgs e)

    {

    this.datePicker1.Text = "";

    }

    Monday, January 3, 2011 8:12 AM
  •  datePicker1.SelectedDate = null;
                datePicker1.Text = "wrong";

     datePicker1.SelectedDate = null;

                datePicker1.Text = "wrong"; //anything that does not make sense?

    Monday, January 3, 2011 9:31 AM