Class
ObservableGraphSourceBase<TNode, TLink>

Represents a base class for an observable graph source.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Extensions.ViewModels

Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll

Type Parameters:

TNode

The type of the node.

TLink

The type of the link.

Syntax:

cs-api-definition
public class ObservableGraphSourceBase<TNode, TLink> : GraphSourceBase<TNode, TLink>, INotifyPropertyChanged, IDisposable, IObservableGraphSource, IGraphSource where TLink : ILink

Inheritance: objectViewModelBaseGraphSourceBase<TNode, TLink>ObservableGraphSourceBase<TNode, TLink>

Derived Classes: SerializableGraphSourceBase<TNode, TLink>

Implements: IDisposableIGraphSourceINotifyPropertyChangedIObservableGraphSource

Inherited Members GraphSourceBase<TNode, TLink>.AddNode(TNode)GraphSourceBase<TNode, TLink>.AddLink(TLink)GraphSourceBase<TNode, TLink>.RemoveLink(TLink)GraphSourceBase<TNode, TLink>.RemoveItem(TNode)GraphSourceBase<TNode, TLink>.Clear()GraphSourceBase<TNode, TLink>.InternalItemsGraphSourceBase<TNode, TLink>.InternalLinksGraphSourceBase<TNode, TLink>.ItemsGraphSourceBase<TNode, TLink>.LinksViewModelBase.VerifyPropertyName(string)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.RaisePropertyChanged(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.Dispose(bool)ViewModelBase.PropertyChanged

Constructors

ObservableGraphSourceBase()

Declaration

cs-api-definition
public ObservableGraphSourceBase()

Methods

Creates a link based on the associated source and target nodes.

Declaration

cs-api-definition
public virtual ILink CreateLink(object source, object target)

Parameters

source

object

The source node.

target

object

The target node.

Returns

ILink

Returns the created link.

CreateNode(IShape)

Creates a node based on an associated shape.

Declaration

cs-api-definition
public virtual object CreateNode(IShape shape)

Parameters

shape

IShape

The associated shape.

Returns

object

Returns the created node.