Browse Source

Outline Node.

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

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

@ -54,7 +54,7 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView @@ -54,7 +54,7 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView
var locked = designItem.Properties.GetAttachedProperty(DesignTimeProperties.IsLockedProperty).ValueOnInstance;
if (locked != null && (bool) locked == true) {
this._isDesignTimeLocked = true;
this._isDesignTimeLocked = true;
}
//TODO
@ -94,15 +94,15 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView @@ -94,15 +94,15 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView
value ? SelectionTypes.Add : SelectionTypes.Remove);
RaisePropertyChanged("IsSelected");
}
}
}
}
bool _isDesignTimeVisible = true;
public bool IsDesignTimeVisible
{
get {
return _isDesignTimeVisible;
get {
return _isDesignTimeVisible;
}
set {
_isDesignTimeVisible = value;
@ -122,8 +122,8 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView @@ -122,8 +122,8 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView
public bool IsDesignTimeLocked
{
get {
return _isDesignTimeLocked;
get {
return _isDesignTimeLocked;
}
set {
_isDesignTimeLocked = value;
@ -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