|
|
|
@ -19,10 +19,11 @@ namespace Debugger.AddIn.Visualizers.Graph.Layout |
|
|
|
/// Creates new PositionedNode.
|
|
|
|
/// Creates new PositionedNode.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="objectNode">Underlying ObjectNode.</param>
|
|
|
|
/// <param name="objectNode">Underlying ObjectNode.</param>
|
|
|
|
public PositionedNode(ObjectGraphNode objectNode) |
|
|
|
public PositionedNode(ObjectGraphNode objectNode, Expanded expanded) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.objectNode = objectNode; |
|
|
|
this.ObjectNode = objectNode; |
|
|
|
InitVisualControl(); |
|
|
|
InitVisualControl(); |
|
|
|
|
|
|
|
InitContentFromObjectNode(expanded); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public event EventHandler<PositionedPropertyEventArgs> PropertyExpanded; |
|
|
|
public event EventHandler<PositionedPropertyEventArgs> PropertyExpanded; |
|
|
|
@ -30,20 +31,21 @@ namespace Debugger.AddIn.Visualizers.Graph.Layout |
|
|
|
public event EventHandler<ContentNodeEventArgs> ContentNodeExpanded; |
|
|
|
public event EventHandler<ContentNodeEventArgs> ContentNodeExpanded; |
|
|
|
public event EventHandler<ContentNodeEventArgs> ContentNodeCollapsed; |
|
|
|
public event EventHandler<ContentNodeEventArgs> ContentNodeCollapsed; |
|
|
|
|
|
|
|
|
|
|
|
private ObjectGraphNode objectNode; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Underlying ObjectNode.
|
|
|
|
/// Underlying ObjectNode.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public ObjectGraphNode ObjectNode |
|
|
|
public ObjectGraphNode ObjectNode { get; private set; } |
|
|
|
{ |
|
|
|
|
|
|
|
get { return objectNode; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Tree-of-properties content of this node.
|
|
|
|
/// Tree-of-properties content of this node.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public ContentNode Content { get; set; } |
|
|
|
public ContentNode Content { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Name of the Type in the debuggee.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string TypeName { get { return this.ObjectNode.TypeName; } } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// The size of the subtree of this node in the layout.
|
|
|
|
/// The size of the subtree of this node in the layout.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
@ -54,14 +56,14 @@ namespace Debugger.AddIn.Visualizers.Graph.Layout |
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public PositionedGraphNodeControl NodeVisualControl { get; private set; } |
|
|
|
public PositionedGraphNodeControl NodeVisualControl { get; private set; } |
|
|
|
|
|
|
|
|
|
|
|
public void InitContentFromObjectNode(Expanded expanded) |
|
|
|
void InitContentFromObjectNode(Expanded expanded) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.Content = new ContentNode(this, null); |
|
|
|
this.Content = new ContentNode(this, null); |
|
|
|
this.Content.InitOverride(this.ObjectNode.Content, expanded); |
|
|
|
this.Content.InitOverride(this.ObjectNode.Content, expanded); |
|
|
|
this.NodeVisualControl.Root = this.Content; |
|
|
|
this.NodeVisualControl.SetDataContext(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void InitVisualControl() |
|
|
|
void InitVisualControl() |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.NodeVisualControl = NodeControlCache.Instance.GetNodeControl(); |
|
|
|
this.NodeVisualControl = NodeControlCache.Instance.GetNodeControl(); |
|
|
|
// propagate events from nodeVisualControl
|
|
|
|
// propagate events from nodeVisualControl
|
|
|
|
|