public void EndSelection() { IsActiveDragging = false; Keyboard.ClearFocus(); if (SelectedItems.IsSingleElement()) { SelectedItems.Single().Focus(); } else { Owner.Focus(); } SelectedItems.Clear(); SelectedItems = null; }