Browse Source

Outline Node.

Show Children of for Example AvalonDock2 in Outline Node
pull/72/head
jkuehner 12 years ago
parent
commit
d267d43428
  1. 15
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/OutlineView/OutlineNode.cs

15
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/OutlineView/OutlineNode.cs

@ -194,6 +194,21 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView @@ -194,6 +194,21 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView
var node = OutlineNode.Create(item);
Children.Add(node);
}
else
{
var content = item.ContentProperty;
if (content != null)
{
if (content.IsCollection) {
UpdateChildrenCore(content.CollectionElements);
}
else {
if (content.Value != null) {
UpdateChildrenCore(new[] { content.Value });
}
}
}
}
}
}

Loading…
Cancel
Save