# DiagramExtensions ViewModels

Telerik Diagramming Framework provides a list of **ViewModels** defined in the **Telerik.Windows.Controls.Diagrams.Extensions.dll**.

Please note that these classes are designed to serve as a base implementation of your **ViewModels** thus facilitating your efforts when working with a data-bound **RadDiagram**.

This section provides information regarding these **ViewModels**. Below you can examine their inheritance model and find links to tutorials describing each class in more details:

ItemViewModels Inheritance Model

![raddiagram-data-itemviewmodels-hierarchy](https://www.telerik.com/products/wpf/documentation/assets/21751f2a9797db57cb1aa9337c6072dd/raddiagram-data-itemviewmodels-hierarchy.png)

* [ItemViewModelBase](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagramextensions-viewmodels/data-itemviewmodels) - a **ViewModel** designed to describe a few common properties of the **RadDiagramItems**.

* [NodeViewModelBase](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagramextensions-viewmodels/data-nodeviewmodel) - a **ViewModel** designed to describe a **RadDiagramShape**.

* [LinkViewModelBase](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagramextensions-viewmodels/data-linkviewmodel) - a **ViewModel** designed to describe a **RadDiagramConnection**.

* [ContainerNodeViewModelBase](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagramextensions-viewmodels/data-containernodeviewmodel) - a **ViewModel** designed to describe a **RadDiagramContainerShape**.

* [HierarchicalNodeViewModel](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagramextensions-viewmodels/data-hierarchicalnodeviewmodel) - a **ViewModel** designed to describe a hierarchical **RadDiagramShape**.

GraphSource ViewModels Inheritance Model
![raddiagram-data-graphsource-hierarchy](https://www.telerik.com/products/wpf/documentation/assets/fa67a3b47cf77cdb686771ee482c6ada/raddiagram-data-graphsource-hierarchy.png)

* [GraphSourceBase](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagramextensions-viewmodels/data-graphsourcebase) - a **ViewModel** designed to describe a sample **GraphSource** implementation. Please note that this GraphSource type doesn't support TwoWay binding operation. This means that it shouldn't be used in **RadDiagram** that has to provide any drag, drop or clipboard operations.

* [ObservableGraphSourceBase](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagramextensions-viewmodels/data-observablegraphsource) - a **ViewModel** designed to describe a **GraphSource** implementation that reflects the runtime changes in a **RadDiagram GraphSource** collection. This makes the **ObservableGraphSourceBase** class a good choice when creating a data-bound **RadDiagram** that has to support drag and drop operations. However, it's important to create a custom class deriving from this built-in **ViewModel** so that you can define how to implement the UI changes in the business logic.

* [SerializableGraphSourceBase](https://www.telerik.com/products/wpf/documentation/controls/raddiagram/diagramextensions-viewmodels/data-serializablegraphsource) - a **ViewModel** designed to describe a **GraphSource** implementation that supports all serialization operations in the **RadDiagram**. This makes the **SerializableGraphSourceBase** class a good choice when creating a data-bound **RadDiagram** that has to support clipboard operations. However please have in mind that the **SerializableGraphSourceBase** is an **abstract** class and therefore you need to create a custom class deriving from this built-in **ViewModel**.
