A utility class that helps in decorating the Lookup(Type) method of IModelItem instances that are contained in an IGraph which are managed by an ILookupDecorator.

Namespace: yWorks.yFiles.UI.Model
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version:


public class ItemDecorator<TModelItem> where TModelItem : class, IModelItem
Visual Basic
Public Class ItemDecorator(Of TModelItem As {Class, IModelItem})

Type Parameters

The type of the model item that can be decorated by instances of this type.


This implementation serves as a factory for predefined LookupDecorator<(Of <(<'TDecoratedType, TInterface>)>)> instances that are often useful for the IModelItem type in an IGraph instance that is being edited in a GraphControl. Note that the list of possible decorations that are available using this class is not exhaustive in any way. This is merely a way to provide access to those interfaces that are more commonly being decorated by the developer.

Inheritance Hierarchy

See Also