An IStyleRenderer<(Of <(<'TModelItem, TStyle>)>)> implementation for IUIElementPortStyle
instances that creates visual representations for ports 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 UIElementPortStyleRenderer : AbstractStyleRenderer<IPort, IPortStyle, IUIElementPortStyle>, IPortStyleRenderer, IStyleRenderer<IPort, IPortStyle> |
| Visual Basic |
|---|
Public Class UIElementPortStyleRenderer _ Inherits AbstractStyleRenderer(Of IPort, IPortStyle, IUIElementPortStyle) _ Implements IPortStyleRenderer, IStyleRenderer(Of IPort, IPortStyle) |
Remarks
The instanciations of the template will be assigned instances of UIElementPortStyleDataContext
to their DataContext properties.
The UIElement that is created by the DataTemplate will be arranged
according to the corresponding IPort's location and the
RenderSize. The center of the element will coincide with the location of the port.
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.UI.Drawing..::..AbstractStyleRenderer<(Of <(<'IPort, IPortStyle, IUIElementPortStyle>)>)>
yWorks.yFiles.UI.Drawing..::..UIElementPortStyleRenderer
yWorks.yFiles.UI.Drawing..::..AbstractStyleRenderer<(Of <(<'IPort, IPortStyle, IUIElementPortStyle>)>)>
yWorks.yFiles.UI.Drawing..::..UIElementPortStyleRenderer