Northwoods.GoSilverlight 1.2.2 Assembly
CenteredNodeData Property
See Also  Send Feedback
Northwoods.GoXam Namespace > Diagram Class : CenteredNodeData Property

Gets or sets the data object for which the corresponding Node will be centered in the viewport.

Syntax

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

Property Value

The default value is null.

Remarks

You can cause the currently selected node to be automatically centered by binding:
              <go:Diagram x:Name="myDiagram" Grid.Row="0"
                  CenteredNodeData="{Binding ElementName=myDiagram, Path=SelectedNode.Data}" />
            
This calls DiagramPanel.CenterPart when the value of this property changes or when a layout completes in DiagramPanel.OnLayoutCompleted.

This property, if non-null, takes precedence over the InitialCenteredNodeData property.

Requirements

See Also

© 2010 All Rights Reserved.