A simple implementation of the IPortControlPortStyle interface
that can render complex ContentControls for the visualization of IPorts.
Namespace: yWorks.yFiles.UI.DrawingAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
public class PortControlPortStyle : ControlStyleBase<IPort>, IPortControlPortStyle, ITaggedStyleBase<IPort>, IPortStyle, IVisualStyle<IPort>, IModelItemInstaller<IPort>, ICloneable |
| Visual Basic |
|---|
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(Control, 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
yWorks.yFiles.UI.Drawing..::..ControlStyleBase<(Of <(<'IPort>)>)>
yWorks.yFiles.UI.Drawing..::..PortControlPortStyle