Пример #1
0
 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)));
 }
Пример #2
0
 private void ClearItem(object sender, PropertyViewItemEventArgs e)
 {
     expandedItems.Clear();
     UnregisterItem(e.Container);
 }