Home Forums WPF controls Xceed DataGrid for WPF DatePicker changed event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25518 |

    I’m attempting to use a DatePicker outside a grid. Is there a date changed event?

    Andrew

    Imported from legacy forums. Posted by Andrew (had 1865 views)

    User (Old forums)
    Member
    Post count: 23064

    This will catch the change if someone picks a date from the calendar or changes the date and loses focus on the control.

    // Set up an event handler for the date picker to capture date changes
    DependencyPropertyDescriptor DatePickerDateChangedDescriptor = DependencyPropertyDescriptor.FromProperty(Xceed.Wpf.Controls.DatePicker.SelectedDateProperty, typeof(Xceed.Wpf.Controls.DatePicker));
    DatePickerDateChangedDescriptor.AddValueChanged(dtpAsOfDate, new EventHandler(dtpAsOfDate_DateChangedHandler));

    I haven’t found the events yet to catch changes to month, day or year as they occur.

    Hope that helps.

    Breeze

    Imported from legacy forums. Posted by Steve (had 3159 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.