private AdvancedDropdownItem BuildTreeForUsages() { var usageRoot = new AdvancedDropdownItem("Usages"); foreach (var usage in EditorInputControlLayoutCache.allUsages) { var child = new UsageTreeViewItem(usage); if (usage.Value.Any(LayoutMatchesExpectedControlLayoutFilter)) { usageRoot.AddChild(child); } } return(usageRoot); }
TreeViewItem BuildTreeForUsages() { var usageRoot = new TreeViewItem { displayName = "Usages", id = "Usages".GetHashCode(), depth = 0 }; foreach (var usage in EditorInputControlLayoutCache.allUsages) { var child = new UsageTreeViewItem(usage); usageRoot.AddChild(child); } return(usageRoot); }