The generic base interface used by visual styles implementations.

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

Syntax

C#
public interface IVisualStyle<TModelItem> : IModelItemInstaller<TModelItem>, ICloneable where TModelItem : IModelItem
Visual Basic
Public Interface IVisualStyle(Of TModelItem As IModelItem) _ Inherits IModelItemInstaller(Of TModelItem), ICloneable

Type Parameters

TModelItem
the type of item this style is meant for

Remarks

Visual styles are responsible for rendering IModelItem instances in a CanvasControl. It is up to the implementation to interpret the visual appearance of an item. This interface extends the IModelItemInstaller<(Of <(<'T>)>)> interface for TModelItem to allow for installing the item into the CanvasControl. This interface extends the ICloneable interface. This allows clients to obtain a copy of the current state of this style. Note that unless noted otherwise the clones are shallow clones, so aggregated properties are shared between the clones. Immutable style implementations may return themselves, instead.

See Also