Hello,
In one of our project we used a WPF diagram control developed by me. It works well, but some features like printing, pagination, ... are missing so we plan to use RadDiagram control. I start a project for the migration (Q2 2015) and I have some questions. You can find attached my control based on a WPF canvas. We use MVVM in our software.
- Is it possible to have a margin between a shape and the selection ? I try set the margin property but it doesn't work. The shape is moved vertically and horizontally but is too big even if I reduce the geometry, I didn't found Stretch property for the geometry.
<
Style
TargetType
=
"telerik:RadDiagramShape"
x:Key
=
"ProcedureStepFinalStyle"
>
<
Setter
Property
=
"IsEditable"
Value
=
"False"
/>
<
Setter
Property
=
"Position"
Value
=
"{Binding Position, Mode=TwoWay}"
/>
<
Setter
Property
=
"RotationAngle"
Value
=
"{Binding RotationAngle}"
/>
<
Setter
Property
=
"IsResizingEnabled"
Value
=
"False"
/>
<
Setter
Property
=
"IsRotationEnabled"
Value
=
"False"
/>
<
Setter
Property
=
"Geometry"
Value
=
"M 0,24 A 24,24 45 0 1 24,0 L 132,0 A 24,24 45 0 1 156,24 A 24,24 45 0 1 132,48 L 24,48 A 24,24 45 0 1 0,24"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"#FF6b9100"
/>
<
Setter
Property
=
"Height"
Value
=
"48"
/>
<
Setter
Property
=
"Width"
Value
=
"168"
/>
<
Setter
Property
=
"AllowCut"
Value
=
"False"
/>
<
Setter
Property
=
"Padding"
Value
=
"5"
/>
<
Setter
Property
=
"Margin"
Value
=
"5"
/>
<
Setter
Property
=
"Background"
>
<
Setter.Value
>
<
LinearGradientBrush
StartPoint
=
"0,0"
EndPoint
=
"1,0"
>
<
GradientStopCollection
>
<
GradientStop
Offset
=
"0"
Color
=
"White"
/>
<
GradientStop
Offset
=
"1"
Color
=
"#FFbdfc02"
/>
</
GradientStopCollection
>
</
LinearGradientBrush
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"ContentTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
TextBlock
Text
=
"{localization:LocText Courbon.Languages:Language:PageGraphic_End}"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
FontWeight
=
"Bold"
/>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
- How to only authorize connection start from bottom shape to the top of another shape ?
- How to set connection stroked when and item is moving or when a connection is being drawn (like in I2.png attached picture) ?
- How to have the same connection logic thank in the pictures ?
I have a look to IRouter interface, but I think it doesn't help... We cannot have arc on intersection.
Thanks in advance for our reply.
Best regards,
Geoffrey