Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram links and ListBox (Read 2035 times)
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Diagram links and ListBox
Mar 18th, 2010 at 6:00am
Print Post  
Hi Stoyo

It is possible to display different shapes in NodeListView Control or in listview control using ShapeGeometry property.

In my application, I want to present user choice for selecting different type of links. Therefore I need to display diagram links in listbox where user can select the link ( By moving mouse over listitem rectangle and not exactly on the link line )

How I can do this ?

-Rajesh
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram links and ListBox
Reply #1 - Mar 18th, 2010 at 8:44am
Print Post  
Hi Rajesh,

You could add some Paths to a listbox and bind the path data to shapes' string identifiers using a value converter. The value converter should return a PathGeometry generated by the CreateOutlineGeometry method we added for you in a recent build. However arrowheads of links in DiagramLite are not defined through Shape objects.

Stoyan
  
Back to top
 
IP Logged
 
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Re: Diagram links and ListBox
Reply #2 - Mar 18th, 2010 at 9:16am
Print Post  
Hi Stoyo

I didn't get what you want to say ...

What I understood is that different "ArrowHead" can be displayed since they are not using shape object.  And you are asking to make shapes and bind it in listview.

I guess its more work to implment then ... Sad

When I tried to add following statement in my xaml  in NodeListView control,

               <diag:DiagramLink Text=" The link" Background="Blue" BaseShape="Arrow" HeadShape="Circle" BorderThickness="2.0" Height="30" Width="30"  />

I am able to see the text only in the listbox.

Is it not possible for you people to adapt some small changes over there and allow displaying of links in specific bounds.

May be in this case, there won't be any source and destination node not required.

-Rajesh

  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram links and ListBox
Reply #3 - Mar 18th, 2010 at 11:38am
Print Post  
I suppose these were answers to two different questions of yours :
- yes, with the new method we added now you can display Shape.ShapeGeometry without using ShapeNodes, but
- no, you cannot use that to display link arrowheads because they are currently not implemented through the Shape class.

By the way in the last WPF and Winforms releases we have changed the arrowheads type to Shape, and will do that for the Silveright control too in its 1.5 release.

You might still be able to add links to a listview, but I can't think of any way doing that from Xaml. Instead try to do that from the code-behind by creating unconnected links and setting their ControlPoints instead of Width and Height.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint