Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Network Node Control
posted

 

Hello,

 

I have a few queries regarding the Silverlight XamNetworkNode Control where I couldn't find online information:

1) Is there a way to add a labels to a Connection (or use a template) , or show a tooltip when a connection has mouse over?

2) Is it possible to vary the NodeDistance per node?  I would like some groups of nodes clustered together closely, and the links between these clusters to be wider.  At the minute my clusters are crashing into each other, and its difficult to visually separate them.

3) Is it possible to group nodes together, and therefore allow moving all nodes when any are moved as a group?

Thanks,

Jon

 

Parents
  • 28407
    posted

    HI,

     for issue 1:

     Here are some code snippets that allow you to adjust the connections between nodes:


    <Style x:Key="lstyle" TargetType="{x:Type Path}">    

             <Setter Property="ToolTip" Value="hello"/>

                <Setter Property="Cursor" Value="Hand"/>

                 <Setter Property="StrokeThickness" Value="14"/>

                 <Setter Property="StrokeDashCap" Value="Round"/>

                <Setter Property="Stroke" Value="Red"/>

            </Style>

       <ig:XamNetworkNode x:Name="xnn"    

                            ItemsSource="{Binding Nodes}"   

                             Grid.RowSpan="2"   

                            LineStyle="{StaticResource lstyle}"

                               LineCapSize="15"   

                             LineStartCap="Square"       

                         LineEndCap="Arrow"  

                              Loaded="xnn_Loaded" >

     Sincerely,

     Matt

     Developer Support Engineer

Reply Children