Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Z-Index in Contrainer (Read 3296 times)
mazelin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Jun 8th, 2009
Z-Index in Contrainer
Jun 16th, 2009 at 9:47am
Print Post  
I add two Nodes to Contrainer, than I use Z-Index to control one looks above or below another. But I find the Z-Index will effect the Contrainer.
I need only the Nodes in Contrainer use  Z-Index.
How can I do it?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Z-Index in Contrainer
Reply #1 - Jun 16th, 2009 at 11:31am
Print Post  
You might have set the child's ZIndex to be smaller than container's ZIndex. What happens if you set container.ZIndex = 0 in the end?
  
Back to top
 
IP Logged
 
mazelin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Jun 8th, 2009
Re: Z-Index in Contrainer
Reply #2 - Jun 17th, 2009 at 4:18am
Print Post  
It's can not work.
  
Back to top
 
IP Logged
 
mazelin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Jun 8th, 2009
Re: Z-Index in Contrainer
Reply #3 - Jun 17th, 2009 at 4:23am
Print Post  
I mean the two child nodes need use Z-Index, container is ok.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Z-Index in Contrainer
Reply #4 - Jun 17th, 2009 at 5:42am
Print Post  
Have you added the child nodes to the diagram before setting ZIndex? This won't work, unless you move the ZIndex assignment after the Nodes.Add call:

Code
Select All
ShapeNode node = new ShapeNode(d);
node.ZIndex = 1;
d.Nodes.Add(node);
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
mazelin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Jun 8th, 2009
Re: Z-Index in Contrainer
Reply #5 - Jun 17th, 2009 at 1:01pm
Print Post  
I add two children nodes, like this:
shapeNode.ZIndex = 1;
contrainer.Children.Add(shapeNode);
One of two is larger.
Than, the smaller move to the larger one.
If i do not set ZIndex, the first add node will below second.
If i set ZIndex, it can not work.
I need the smaller is up to the larger one forever.
How?
Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Z-Index in Contrainer
Reply #6 - Jun 17th, 2009 at 1:19pm
Print Post  
Are you setting ZIndex of both child nodes to the same value? This is now allowed, and the second ZIndex assignment will shift the other items up in the Z order list.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint