Northwoods.GoWPF 2.2.4 Assembly
InitialCenteredNodeData Property

Gets or sets the data object for which the corresponding Node will be centered in the viewport after an initial layout has completed.
Syntax
Public Property InitialCenteredNodeData As Object
public object InitialCenteredNodeData {get; set;}

Property Value

The default value is null.
Remarks

One cannot scroll the diagram until the diagram and its Panel have been fully initialized, until the nodes and links have been realized, and until the initial layout has completed, ensuring that all nodes have locations. Rather than calling DiagramPanel.CenterPart in an InitialLayoutCompleted event handler, you can just set this property to refer to some data, and DiagramPanel.OnInitialLayoutCompleted will center the node for you.

Note that if you set both this property and CenteredNodeData to different data, the latter will take precedence.

Requirements
See Also

Reference

Diagram Class
Diagram Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback