protected override void OnKeyDown(KeyEventArgs e) { if (e.Key == Key.Escape) IsDropDownOpen = false; base.OnKeyDown(e); }