Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) How to use Container node? (Read 13236 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to use Container node?
Reply #15 - Oct 27th, 2008 at 10:58am
Print Post  
We'll add some new properties to the ContainerFolded event-args object. Until then, you might store the original rectangles as Tag values.

Stoyan
  
Back to top
 
IP Logged
 
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: How to use Container node?
Reply #16 - Oct 27th, 2008 at 5:51pm
Print Post  
I found some problems related to ContainerNode.
1. After I moved the nodes inside a ContainerNode to the ContainerNode's boundary, I couldn't collapse the ContainerNode with the expand/collapse icon. It seems that the ContainerNode was in moving mode. I need to get rid of the moving mode first then to collapse it.

2. I found several times that the nodes inside a ContainerNode disappeared after I changed position, expanded and collapsed(I didn't do anything special). I checked the nodes collection in the Diagram, all the nodes were still in the collection. But they were not drawn in the ContainerNode.
I can't reproduce this problem, but it occurs quite often.

3. Links between nodes inside a ContainerNode can not be select, deleted. Because they are not shown inside the ContainerNode.

These 3 problems are got from the FlowCharter demo projects.

Would you please ask your testers to look at it?

Right now, the ContainerNode is the only thing we can use to impplement subgraph. So it's very important to us.

Thanks a lot.
« Last Edit: Oct 27th, 2008 at 7:14pm by chris »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to use Container node?
Reply #17 - Oct 28th, 2008 at 9:31am
Print Post  
1) We've fixed a bug that might be related to this. Please try if this version of the control works better:
https://www.mindfusion.eu/_temp/wpfdiag_ctrs.zip

2) Are you setting the ZIndex property of items in some event handlers?

3) The links should be seen, as long as you don't set their ZIndex to one lower than the container's ZIndex after the nodes have been added to it. In any case, you will need to set diagram.HitTestPriority = HitTestPriority.ZOrder to be able to select links inside containers.

Stoyan
  
Back to top
 
IP Logged
 
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: How to use Container node?
Reply #18 - Oct 28th, 2008 at 2:24pm
Print Post  
Thanks, Stoyo.
I'll try your new version and let you know the result.

For the second problem, I didn't change ZOrder anywhere. It is Ok when some nodes are added to a ContainerNode. But suddenly, they are not shown in the ContainerNode when I expand it.
Do I need to set ZOrder for the nodes when thet are added to a ContainerNode?

For the third problem: after I added diagram.HitTestPriority = HitTestPriority.ZOrder, I can select a link. But If I click some white space in a ContainerNode the links are not shown(the ShapeNodes are still shown in the ContainerNode).
I think it's better to show both ShapeNodes and Links in a ContainerNode.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to use Container node?
Reply #19 - Oct 29th, 2008 at 2:02pm
Print Post  
This version should fix the problem with the disappearing nodes:
https://mindfusion.eu/_temp/wpfdiag_ctrs2.zip

Stoyan
  
Back to top
 
IP Logged
 
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: How to use Container node?
Reply #20 - Oct 29th, 2008 at 10:51pm
Print Post  
Hi Stoyan,

I got the following error after I replaced the dlls.
Please tell me how to install the new dlls.

Thanks a lot!

Exception occurred creating type 'MindFusion.Diagramming.Wpf.Diagram, MindFusion.Diagramming.Wpf, Version=2.0.0.28641, Culture=neutral, PublicKeyToken=1080b51628c81789' System.TypeLoadException: Could not load type 'System.Windows.Media.Effects.Effect' from assembly 'PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.



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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to use Container node?
Reply #21 - Oct 30th, 2008 at 7:35am
Print Post  
Hi,

The control now requires service pack 1 of VS2008 / .NET 3. The Effect class is defined in SP1 and replaces BitmapEffect.

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