A style that can be used for style roundtripping and manipulation if a style used on the client cannot be properly deserialized to a style implementation contained in yFiles.NET.

Namespace: yWorks.yFiles.Graph.Web
Assembly: yFilesServer (in yFilesServer.dll) Version: 1.8.0.0 (1.8)

Syntax

C#
public abstract class XmlStyle<TModelItem, TStyle> : IVisualStyle<TModelItem>, 
	ICloneable
where TModelItem : IModelItem
where TStyle : class, IVisualStyle<TModelItem>
Visual Basic
Public MustInherit Class XmlStyle(Of TModelItem As IModelItem, TStyle As {Class, IVisualStyle(Of TModelItem)}) _
	Implements IVisualStyle(Of TModelItem), ICloneable

Type Parameters

TModelItem
The item type this style is meant for
TStyle
The style interface that is used for the FallbackStyle.

Remarks

A FallbackStyle can be set that will be used for rendering graph items that use a xml style.
GraphRoundtripSupport will automatically register input handlers that create XmlStyle instances if no other deserializer can be found for a style sent from the client.
Subclasses use a XmlStyleRenderer<(Of <(<'TModelItem, TStyle, TSubStyle>)>)> to render this style.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.Graph.Web..::..XmlStyle<(Of <(<'TModelItem, TStyle>)>)>
    yWorks.yFiles.Graph.Web..::..XmlEdgeStyle
    yWorks.yFiles.Graph.Web..::..XmlLabelStyle
    yWorks.yFiles.Graph.Web..::..XmlNodeStyle
    yWorks.yFiles.Graph.Web..::..XmlPortStyle

See Also