Fixed Bug in BasicExample-CustomEvent

Fixed a bug in BasicExample-CustomEvent which was causing DateTimePicker
to close immediately after it is displayed.