initial version with correct delegate
initial version without timepicker - there isn't one in default WPF 4.0