Northwoods.GoWPF 2.2.4 Assembly
CenteredNodeData Property

Gets or sets the data object for which the corresponding Node will be centered in the viewport.
Syntax
Public Property CenteredNodeData As Object
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

Reference

Diagram Class
Diagram Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback