private void OnFocusedElementPreviewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Escape) IsDropDownOpen = false; }