Esempio n. 1
0
        private void AcceptFindItem(ObjectViewModel item)
        {
            SharpTreeNode parent = item.Parent;

            while (parent != null)
            {
                parent.IsExpanded = true;
                parent            = parent.Parent;
            }
            treeView.SelectedItem = item;
            treeView.FocusNode(item);
            TaskHelper.Background(() => treeView.ScrollIntoView(item));
        }