I need to display an icon along the path of a connector (see the 'A' icon in the attached image).
Ideally, this would be closer to the start/source, rather then directly in the middle. Is there a way to do this without setting the exact position of the content?
This is the Connector Style & Data template:
<Style TargetType="telerik:RadDiagramConnection" x:Key="LinkStyle" BasedOn="{StaticResource RadDiagramConnectionStyle}"> <Setter Property="ConnectionType" Value="{Binding ConnectionType}" /> <Setter Property="Stroke" Value="{Binding LinkLineColor, Converter={StaticResource BrushConverter}}" /> <Setter Property="StrokeThickness" Value="{Binding StrokeThickness}" /> <Setter Property="StrokeDashArray" Value="{Binding LinkLineStyle}" /> <Setter Property="SourceConnectorPosition" Value="{Binding SourceConnectorPosition}" /> <Setter Property="TargetConnectorPosition" Value="{Binding TargetConnectorPosition}" /> <Setter Property="TargetCapType" Value="{Binding TargetCapStyle}" /> <Setter Property="SourceCapType" Value="{Binding SourceCapStyle}" /> <Setter Property="Foreground" Value="{Binding LinkLineColor}" /> <Setter Property="Background" Value="{Binding LinkLineColor}" /> </Style>
<DataTemplate x:Key="LinkTemplate"> <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding ConditionalRouteText}" Visibility="{Binding ConditionalRouteVisible}" /> <telerik:RadDiagramShape Visibility="{Binding TimeAdvanceVisible}" Geometry="M16.35,6.39 C16.28,7.36 12.26,20.45 12.26,20.45 L20.56,20.45 C20.56,20.45 16.64,7.54 16.53,6.39 z M12.30,0.50 L20.97,0.50 L32.50,33.50 L24.54,33.50 L22.23,26.16 L10.70,26.16 L8.42,33.50 L0.50,33.50 z" /> <TextBlock Text="{Binding TimeAdvanceText}" Visibility="{Binding TimeAdvanceVisible}" /> </StackPanel> </DataTemplate>