This is a migrated thread and some comments may be shown as answers.

How to change color of the snapping lines?

1 Answer 47 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 14 Jun 2013, 03:30 PM
By default the color is red:
http://www.telerik.com/help/wpf/media/raddiagram-features-align-snaptoitems.png

How can I change it? Which style is responsible?

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 17 Jun 2013, 02:33 PM
Hello Kristoffer,

 You can change the Thickness, Stroke and StrokeDashArray of these lines by setting the following set properties:

xmlns:primitives="clr-namespace:Telerik.Windows.Controls.Diagrams.Primitives;assembly=Telerik.Windows.Controls.Diagrams"
 
<telerik:RadDiagram x:Name="diagram" Margin="30"
                          primitives:AlignmentAdorner.VerticalLineStroke="Aqua"
                          primitives:AlignmentAdorner.HorizontalLineStroke="Aqua"
                           
                          primitives:AlignmentAdorner.HorizontalLineStrokeDashArray="1 2 3"
                          primitives:AlignmentAdorner.VerticalLineStrokeDashArray="1 2 3"
                           
                          primitives:AlignmentAdorner.VerticalLineStrokeThickness="3"
                          primitives:AlignmentAdorner.HorizontalLineStrokeThickness="3"
                          >
          <telerik:RadDiagramShape />
      </telerik:RadDiagram>
We hope this will help you proceed further.

Regards,
Petar Mladenov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or