Exemplo n.º 1
0
        private void HighlightItem(IPaletteItem item)
        {
            if (item.CompareTo(selectedItem) != 0)
            {
                //set the new selected item
                SelectedItem = item;

                //clear any current selection
                ClearSelection();

                //highlight current selection
                item.Selected = true;
            }
        }