A simple implementation of the IPortControlPortStyle interface that can render complex ContentControls for the visualization of IPorts.

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 PortControlPortStyle : ControlStyleBase<IPort>, 
	IPortControlPortStyle, ITaggedStyleBase<IPort>, IPortStyle, IVisualStyle<IPort>, 
	IModelItemInstaller<IPort>, ICloneable
Visual Basic
<ObfuscationAttribute(StripAfterObfuscation := False, ApplyToMembers := False,  _
	Exclude := True)> _
Public Class PortControlPortStyle _
	Inherits ControlStyleBase(Of IPort) _
	Implements IPortControlPortStyle, ITaggedStyleBase(Of IPort),  _
	IPortStyle, IVisualStyle(Of IPort), IModelItemInstaller(Of IPort),  _
	ICloneable

Remarks

The StyleResourceKey is used to determine the Style that will be applied to the PortControl. The style will be looked-up using the TryFindResource(Object) method for the CanvasControl the style is used in. Note that the RenderSize should be specified to match the size of the control style.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.UI.Drawing..::..ControlStyleBase<(Of <(<'IPort>)>)>
    yWorks.yFiles.UI.Drawing..::..PortControlPortStyle

See Also