Interface IObservableGraphSource
Represents an observable graph source.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public interface IObservableGraphSource : IGraphSource
Remarks
You need to implement this interface in a scenario where the MVVM is bidirectional.
Methods
AddLink(ILink)
Adds a link in the Links collection.
Declaration
void AddLink(ILink link)
Parameters
ILink
link
The link. |
AddNode(Object)
Adds a node in the Items collection.
Declaration
void AddNode(object node)
Parameters
System.Object
node
The node. |
CreateLink(Object, Object)
Creates a link based on the associated source and target nodes.
Declaration
ILink CreateLink(object source, object target)
Parameters
System.Object
source
The source node. |
System.Object
target
The target node. |
Returns
ILink
Returns the created link. |
CreateNode(IShape)
Creates a node based on an associated shape.
Declaration
object CreateNode(IShape shape)
Parameters
IShape
shape
The associated shape. |
Returns
System.Object
Returns the created node. |
RemoveLink(ILink)
Removes a link from the Links collection.
Declaration
bool RemoveLink(ILink link)
Parameters
ILink
link
The link. |
Returns
System.Boolean
|
RemoveNode(Object)
Removes a node from the Items collection.
Declaration
bool RemoveNode(object node)
Parameters
System.Object
node
The node. |
Returns
System.Boolean
|