Visual Basic (Declaration) | |
---|---|
Public Property CenteredNodeData As Object |
C# | |
---|---|
public object CenteredNodeData {get; set;} |
Property Value
The default value is null.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.