An IStyleRenderer<(Of <(<'TModelItem, TStyle>)>)> implementation for IUIElementEdgeStyle
instances that creates visual representations for edge segments based on Templates
and TemplateSelectors.
Namespace: yWorks.yFiles.UI.DrawingAssembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
public class UIElementEdgeStyleRenderer : IEdgeStyleRenderer, IStyleRenderer<IEdge, IEdgeStyle>, IVisualCreator, ILookup |
| Visual Basic |
|---|
Public Class UIElementEdgeStyleRenderer _ Implements IEdgeStyleRenderer, IStyleRenderer(Of IEdge, IEdgeStyle), _ IVisualCreator, ILookup |
Remarks
The instanciations of the template will be assigned instances of UIElementEdgeStyleSegmentDataContext
to their DataContext properties.
The UIElements that are created by the DataTemplate will be arranged
according to the geometry of each edge segment, which is determined using the
path geometry of the PathStyle
and the SegmentWidth. Each segment will be arranged so that it will have a height
of SegmentWidth and the point (0, segmentWidth/2) will coincide with the first control point
of each segment (the one that is closer to the source port for most implementations) and the point (width, segmentWidth/2)
will coincide with the second control point of the segment (the one closer to the target port).
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.UI.Drawing..::..UIElementEdgeStyleRenderer
yWorks.yFiles.UI.Drawing..::..UIElementEdgeStyleRenderer