Northwoods.GoSilverlight 1.2.2 Assembly
InitialCenteredNodeData Property
See Also  Send Feedback
Northwoods.GoXam Namespace > Diagram Class : 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

Visual Basic (Declaration) 
Public Property InitialCenteredNodeData As Object
C# 
public object InitialCenteredNodeData {get; set;}

Property Value

The default value is null.

Remarks

One cannot scroll the diagram until the diagram and its Diagram.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

© 2010 All Rights Reserved.