Hello there,
we are using the RadDiagram to create a kind of hierarchical view, where the connections should show some information about the connection itself.
I've tried to use the Horizontal-/VerticalContentAlignment for this, but since the different directions of the connections I haven't found a solution that worked for all connections yet.
I've attached a picture of our momentary existing diagram. The text for the connections is correctly placed on connections to the left, but not to the right.
Here is the style we are currently using:
It would be perfect, if the text could be positioned right beneath where the connection "meets" the Shape (I've marked the spot on the screenshot in yellow), but I have no idea how to accomplish this.
Could you please help me out how we could accomplish this?
we are using the RadDiagram to create a kind of hierarchical view, where the connections should show some information about the connection itself.
I've tried to use the Horizontal-/VerticalContentAlignment for this, but since the different directions of the connections I haven't found a solution that worked for all connections yet.
I've attached a picture of our momentary existing diagram. The text for the connections is correctly placed on connections to the left, but not to the right.
Here is the style we are currently using:
<
Style
x:Key
=
"EdgeStyle"
TargetType
=
"telerik:RadDiagramConnection"
>
<
Setter
Property
=
"SourceCapType"
Value
=
"Arrow1"
/>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Left"
/>
<
Setter
Property
=
"ContentTemplate"
>
<
Setter.Value
>
<
DataTemplate
DataType
=
"diagramStuff:DiagramEdge"
>
<
TextBlock
HorizontalAlignment
=
"Left"
Margin
=
"-20,10,0,0"
Background
=
"#F3FFFFFF"
Text
=
"{Binding Description}"
/>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
It would be perfect, if the text could be positioned right beneath where the connection "meets" the Shape (I've marked the spot on the screenshot in yellow), but I have no idea how to accomplish this.
Could you please help me out how we could accomplish this?