protected override void OnKeyUp(KeyEventArgs e) {
//base.OnKeyUp(e);
e.Handled = true;
if (e.Key == Key.Escape) {
if (this.RequestCancel != null) {
this.RequestCancel.Invoke(this, EventArgs.Empty);
}
}
if (e.Key == Key.Enter) {
//RaiseBeginSearchEvent();
RaiseEvent(new SearchRoutedEventArgs(CompileTerms(), SearchBox.BeginSearchEvent));
}
}