Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Creating a palette (Read 2674 times)
monkeydll
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 27th, 2016
Creating a palette
Jun 29th, 2016 at 8:37am
Print Post  
Hello.

How do I add elements in my nodeListView from my viewmodel.
Those elements are:
ShapeNode
LinkShape

Any help would be great. Smiley
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Creating a palette
Reply #1 - Jun 29th, 2016 at 9:06am
Print Post  
Hi,

By LinkShape do you mean the enumeration where you assign segment shapes to DiagramLink.Shape property (Bezier, Cascading, Polyline) or the Arrowheads members that can be assigned to HeadShape?

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
monkeydll
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 27th, 2016
Re: Creating a palette
Reply #2 - Jun 29th, 2016 at 10:24am
Print Post  
I mean Arrowheads members that can be assigned to HeadShape.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Creating a palette
Reply #3 - Jun 29th, 2016 at 10:57am
Print Post  
Hi,

NodeListView can only contain DiagramNode derived objects, and not Shape instances. So at this time you could create some helper ShapeNodes and set their Shape to Arrowheads members you'd like to show. For other platforms we have a ShapeListBox control that shows Shape objects, we'll try to implement it in WPF as well in next couple of days.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
monkeydll
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 27th, 2016
Re: Creating a palette
Reply #4 - Jun 29th, 2016 at 11:01am
Print Post  
Ok.
Thanks for the fast replies
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Creating a palette
Reply #5 - Jun 30th, 2016 at 1:12pm
Print Post  
You can find initial implementation of ShapeListBox here, along with a test project -
https://mindfusion.eu/_samples/ShapeView.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint