Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Some Queries - Need help (Read 6834 times)
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Some Queries - Need help
Jan 19th, 2009 at 1:24pm
Print Post  
Hi,

I want to meet following requirements:

1) My node should be diamond shaped with background color that shows its state and an image (based on which type of node it is) is placed on it. And there is node name at bottom which can not be edited.
2) The background color of the node can be changed dynamically.
3) Nodes should be placed on the diagram sheet by dragging them from the toolbar and dropping them on the sheet
4) Right click on any node/link will open a context menu
5) Double click on any node/link will open a dialog box
6) Can we change the selection template of the node
7) On mouse scroll we should be able to zoom-in/zoom-out
8) Selecting a node should select only the image area not the node name.
9) There should be a toolbar from where we can create link and the cursor the should change to pen and we should be able to connect two nodes.
10) When creating a link we should be able to perform validation whether the link between this two nodes is allowed or not.
11) We should be able to pan the diagram sheet.


Please suggest me how to achieve above requirements sample code will certainly help in meeting this requirements and preparing a demo application.

Thanks in advance,
Anurodh

« Last Edit: Jan 19th, 2009 at 2:44pm by anurodhora »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some Queries - Need help
Reply #1 - Jan 19th, 2009 at 2:49pm
Print Post  
Hi,

We'll create a small sample for you tomorrow.

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


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some Queries - Need help
Reply #2 - Jan 19th, 2009 at 3:07pm
Print Post  
Thanks.

That will be great.

Also, i would like to know if following is possible.

1) There will be an option like say "Display Grid" - choosing this option will show grid lines in the diagram sheet.
2) The grid should also confer to zoom-in/zoom-out i.e. when zoom-in the grid cells should increase in size and so on.
3) Also can we have following features with grid diagram sheet having some nodes -
    a) Align to grid will place all nodes in their most neighboring grid cell
    b) Align left - i.e. when more than one node is selected then the nodes left position should be aligned to left position of the node that was selected first.
    c) Align right
    d) Align tops
    e) Align bottoms
    f) Equal vertical spacing - when more than one node is selected the vertical spacing between them should be equal
    g) Equal horizontal spacing

Thanks again for the quick reply.

Looking forward to get some help so that i can then go on and try to implement the remaining set of requirements just to get a demo running.

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some Queries - Need help
Reply #3 - Jan 20th, 2009 at 11:28am
Print Post  
The sample is here:
https://mindfusion.eu/_samples/wpf_diamondshape.zip

Regarding your last post, check the ShowGrid and GridStyle properties, and the AlignPointToGrid method.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some Queries - Need help
Reply #4 - Jan 20th, 2009 at 1:13pm
Print Post  
Thank you very much. Yes, it will certainly help.

I have some more queries. Can following set of features be met with wpf diagram:

1) Binding diagram with List/Collection of objects so that if we change one of the binded object or the list itself it automatically refreshes the diagram.

2) On mouse hover we would like to have bubbling effect that is the node should zoom-in as if we placed a magnifying glass over it and we move out of the node it should again come to its original size.

Thanks again,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some Queries - Need help
Reply #5 - Jan 20th, 2009 at 1:57pm
Print Post  
1) Databinding is not supported yet.

2) You could set the item's RenderTransform from the MouseMove event.

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


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some Queries - Need help
Reply #6 - Jan 22nd, 2009 at 5:23am
Print Post  
Thanks for the reply.

Could you please tell me how to achieve following requirements:

1) Copy/Paste of selected nodes (nodes may be more than one)

2) Change background picture of diagram sheet dynamically

3) Change link color dynamically

4) Customized tooltip on node/link

5) The text attached to the node can be aligned dynamically to bottom/top/left/right of the node.

6) The layout of the diagram can be changed dynamically to Compact View and Hierarchical View.

Thanks in advance,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some Queries - Need help
Reply #7 - Jan 22nd, 2009 at 6:08am
Print Post  
1) Diagram.CopyToClipboard / PasteFromClipboard methods
2) Diagram.BackgroundImage property
3) DiagramLink.Pen property
4) DiagramItem.Tooltip property
5) ShapeNode.TextFormat property
6) Hierarchical View sounds like TreeLayout; could you show some example of what do you mean by compact view?

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


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some Queries - Need help
Reply #8 - Jan 22nd, 2009 at 10:15am
Print Post  
Thanks for the reply.

I tried using ShapeNode.TextFormat property in the sample but it looks like we can set Far/Center/Near but could you suggeat me how to align text to bottom/top/left/right of the node.

like for ex. left alignment will look like:
<Text>Node

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some Queries - Need help
Reply #9 - Jan 22nd, 2009 at 10:18am
Print Post  
TextFormat.LineAlignement lets you set the vertical position of the text, and TextFormat.Alignement the horizontal position.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
anurodhora
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some Queries - Need help
Reply #10 - Jan 22nd, 2009 at 10:25am
Print Post  
Yes you are right but in the sample sent by you, the LineAlignment is set to StringAlignment.Near but hen also the text is coming at bottm centre of the node. I want it to be left aligned. I think may be its related to node origin.

How to do this?

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some Queries - Need help
Reply #11 - Jan 22nd, 2009 at 2:18pm
Print Post  
The text region for that shape in the sample is set below the shape outline, and the text alignment is relative to it. You will have to change the text region definition if you need to align the text to other parts of the node.

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


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some Queries - Need help
Reply #12 - Jan 30th, 2009 at 5:50am
Print Post  
Could you please elaborate on above point.

2) Databinding is the first feature we are looking for as we are planning to have a central object model and binding our diagram to the  collection object of that central object model and there will be separate modules/threads which will be updating this object model and based on the changes the diagram should refresh itself.

When can we get the databinding feature and could you suggest an approach to achieve above requirement with wpfDiagram.

The idea behind this is that our diagram can scale to 50,000 nodes/links and we do not want to load the diagram each time say a node property or some links get changed. So how to do it in an efficient way so that the UI operation is fast enough? How the wpfDiagram can help achieve this?

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some Queries - Need help
Reply #13 - Jan 30th, 2009 at 10:06am
Print Post  
Just remove the third argument of the diamond Shape definition, replace it with null. Currently it defines that the text should appear in a rectangle below the shape outline, so text alignment does not work as you expect. If set to null, the text will be aligned relatively to the shape outline.

Databinding will be available in v2.1.2. Displaying all 50000 objects at the same time probably won't work anyway.

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


I love YaBB 1G - SP1!

Posts: 103
Joined: Jan 19th, 2009
Re: Some Queries - Need help
Reply #14 - Jan 30th, 2009 at 10:14am
Print Post  
Thanks for the reply.

When can we get the databinding version.

we would like to see a reasonable performance with say 1000 nodes. Is UI VIRTUALIZATION implemented?

Thanks,
Anurodh
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint