My understanding is the Zindex is only relative to other elements at the
same level in the hierarchy.

We're doing a bunch of stuff with many items in many panels, to get an item
on top we have to set the zindex on the panel to make it sit above its
sibling panels and then the zindex on the item to move it to the top of the
items in that panel.

 

You may have to break it into two buttons or else have your tabcontrol
inside the button?

 

Keep in mind that items in a Grid are restricted to the Grid's bounds while
items in a Canvas can happily go anywhere.

John.

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Stephen Price
Sent: Tuesday, 20 October 2009 2:22 PM
To: [email protected]
Subject: Tricky Zindex

 

Hey all,

 

I'm trying to make part of a button template show in front of a control, and
another part (of the same button template) hide behind. I'm stuggling to get
it working and I think its because the Zindex is being ignored because my
paths are not actually on a canvas (within the button template). I was
hoping that the Zindex's would bubble up to the Canvas that my custom button
and the control are both on but it's not working that way.

 

any ideas? 

 

it's layed out like this:  (Psuedo Xaml)

 

<Canvas>

<TabControl Zindex=1/>

<Button>

     <Style>

         <Path1 Zindex=0/>

         <Path2 Zindex=2/>

     </Style>

</Button>

</Canvas>

_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to