How to change color of the snapping lines?

2 posts, 1 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 14 Jun 2013 Link to this post

    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?
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 17 Jun 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top