Exemplo n.º 1
0
        public void EndSelection()
        {
            IsActiveDragging = false;
            Keyboard.ClearFocus();
            if (SelectedItems.IsSingleElement())
            {
                SelectedItems.Single().Focus();
            }
            else
            {
                Owner.Focus();
            }

            SelectedItems.Clear();
            SelectedItems = null;
        }