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.
<StyleTargetType="telerik:RadDiagramShape"x:Key="ProcedureStepFinalStyle"><SetterProperty="IsEditable"Value="False"/><SetterProperty="Position"Value="{Binding Position, Mode=TwoWay}"/><SetterProperty="RotationAngle"Value="{Binding RotationAngle}"/><SetterProperty="IsResizingEnabled"Value="False"/><SetterProperty="IsRotationEnabled"Value="False"/><SetterProperty="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"/><SetterProperty="BorderBrush"Value="#FF6b9100"/><SetterProperty="Height"Value="48"/><SetterProperty="Width"Value="168"/><SetterProperty="AllowCut"Value="False"/><SetterProperty="Padding"Value="5"/><SetterProperty="Margin"Value="5"/><SetterProperty="Background"><Setter.Value><LinearGradientBrushStartPoint="0,0"EndPoint="1,0"><GradientStopCollection><GradientStopOffset="0"Color="White"/><GradientStopOffset="1"Color="#FFbdfc02"/></GradientStopCollection></LinearGradientBrush></Setter.Value></Setter><SetterProperty="ContentTemplate"><Setter.Value><DataTemplate><TextBlockText="{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