bswiftly
asked on
xaml - scale transform element outside user control ?
I have a page with two user controls. These need to remain user controls.. I'll call the user control on the "Left" the "Left" user control haha.. and the rgiht one the right one...
The Left user control is a navigation user control and what i want is to be able to have an element overlap the right user control for a particular selected item.
I have done this with a bound listbox - and textblocks for the items, inside a grid with a polygon behind the textbox to colour it and draw a shape of an arrow. What I want is to be able to show the arrow head on top of the right user control for the selected one. (All data triggers etc work fine, its just that it won't show on top of the other control when I do a Scale Transform on the polygon.
When I use Snoop.. it shows that the polygon has stretched across, but I am thinking because the way I did it - the arrow isn't stretching across.
I've also tried zIndex and hasn't worked for me. If someone has some sample code I'd love to see.
Thanks.
The Left user control is a navigation user control and what i want is to be able to have an element overlap the right user control for a particular selected item.
I have done this with a bound listbox - and textblocks for the items, inside a grid with a polygon behind the textbox to colour it and draw a shape of an arrow. What I want is to be able to show the arrow head on top of the right user control for the selected one. (All data triggers etc work fine, its just that it won't show on top of the other control when I do a Scale Transform on the polygon.
When I use Snoop.. it shows that the polygon has stretched across, but I am thinking because the way I did it - the arrow isn't stretching across.
I've also tried zIndex and hasn't worked for me. If someone has some sample code I'd love to see.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you solved it in 2006?
Or you found someone else's solution
Or you found someone else's solution
where yourcontrol is the UserControl you want to set the z-index property for, and x is what you want to set it to.
...you can also set this for the polygon, but I assume it will effect its arrangement within the UserControl it is part of, rather than in relation to the other usercontrol:
yourpolygon.SetValue(Canva