I came across a situation today. I have a WPF app and one window has two DatePicker controls so the user can edit a date range. Once these dates are changed, some database code occurs in the SelectedDatechanged event. The problem i am running into is that the dropdown calendar of the datepicker doesn’t close until this processing is done. What can i do in .NET to force the UI to update prior to the code in the event proceeding?