An abstract implementation of an INodeStyleRenderer which must be parameterized using the concrete INodeStyle interface used by subclasses.

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


public abstract class AbstractNodeStyleRenderer<TStyle> : AbstractStyleRenderer<INode, INodeStyle, TStyle>, IShapeGeometry, INodeStyleRenderer, IStyleRenderer<INode, INodeStyle> where TStyle : class, INodeStyle
Visual Basic
Public MustInherit Class AbstractNodeStyleRenderer(Of TStyle As {Class, INodeStyle}) _ Inherits AbstractStyleRenderer(Of INode, INodeStyle, TStyle) _ Implements IShapeGeometry, INodeStyleRenderer, IStyleRenderer(Of INode, INodeStyle)

Type Parameters

the style interface this renderer deals with


The most simple implementation needs to implement the CreateVisual(IRenderContext) method only. This class additionally implements the IShapeGeometry interface and will return itself when queried using the GetShapeGeometry(INode, INodeStyle) method. Note that this class is inherently thread unsafe. The same instance should not be used to render items in multiple threads.

Inheritance Hierarchy

See Also