private void PrepareItem(object sender, PropertyViewItemEventArgs e) { RegisterItem(e.Container); foreach (var propertyItem in expandedPropertyPaths.ToList().Select(GetPropertyItem).NotNull()) { propertyItem.IsExpanded = true; } foreach (var propertyItem in collapsedPropertyPaths.ToList().Select(GetPropertyItem).NotNull()) { propertyItem.IsExpanded = false; } Dispatcher.BeginInvoke(new Action(() => ExpandSingleProperties(e.Container))); }
private void ClearItem(object sender, PropertyViewItemEventArgs e) { expandedItems.Clear(); UnregisterItem(e.Container); }