NavigateTreeItem GetUniqueItem(string parentKey, string key, NavigateItem item) { var root = new NavigateTreeItem(parentKey, key, item); if (nodesCache.ContainsKey(root)) { return(null); } nodesCache.Add(root, root); return(root); }
void TreeListView_OnCellValueChanging(object sender, TreeListCellValueChangedEventArgs e) { if (e.Column.FieldName != "UseForAddReference") { return; } TreeListView list = (TreeListView)sender; e.Node.ExpandAll(); bool isChecked = (bool)e.Value; TreeListNodeIterator iterator = new TreeListNodeIterator(e.Node); foreach (var node in iterator) { NavigateTreeItem item = (NavigateTreeItem)node.Content; item.UseForAddReference = isChecked; } }