When using the SfDatePicker, you cannot hook the Done and Cancel events of the SfDateSelector directly. You have to retrieve it manually and hook the events as follows.
SfDateSelector is rendered only after the dropdown opens. So you have to manually retrieve the selector by using the VisualTreeHelper in a dropdown popup Opened event.
This page will automatically be redirected to the sign-in page in 10 seconds.