protected override void OnPreviewKeyDown( KeyEventArgs e ) { //if the calendar is open then we don't want to modify the behavior of navigating the calendar control with the Up/Down keys. if( !IsOpen ) base.OnPreviewKeyDown( e ); }