A simple implementation of the INodeControlNodeStyle interface that can render complex ContentControls for the visualization of INodes.

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

Syntax

C#
[ObfuscationAttribute(StripAfterObfuscation = false, ApplyToMembers = false, 
	Exclude = true)]
public class NodeControlNodeStyle : ControlStyleBase<INode>, 
	INodeControlNodeStyle, ITaggedStyleBase<INode>, INodeStyle, IVisualStyle<INode>, 
	IModelItemInstaller<INode>, ICloneable
Visual Basic
<ObfuscationAttribute(StripAfterObfuscation := False, ApplyToMembers := False,  _
	Exclude := True)> _
Public Class NodeControlNodeStyle _
	Inherits ControlStyleBase(Of INode) _
	Implements INodeControlNodeStyle, ITaggedStyleBase(Of INode),  _
	INodeStyle, IVisualStyle(Of INode), IModelItemInstaller(Of INode),  _
	ICloneable

Remarks

The StyleResourceKey is used to determine the Style that will be applied to the NodeControl. The style will be looked-up using the TryFindResource(Object) method for the CanvasControl the style is used in.

Related Demo Applications

The following programming samples are available: Also see the yFiles WPF tutorials for step by step introductions.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.UI.Drawing..::..ControlStyleBase<(Of <(<'INode>)>)>
    yWorks.yFiles.UI.Drawing..::..NodeControlNodeStyle

See Also