Thanks for your replay Mark.
This is my problem:
I have a Canvas that has many UserControls. Each UserControl has an Adorner.
When the user controls are displayed, I can change the z-order of a
Usercontrol when the user clicks on it. The problem is that its Adorner
remains on the original z-order.
I tried to use your suggestion but it doesn’t work because I would need to
get the array of all the adorners in the Canvas.
This is what I did:
AdornerLayer myAdornerLayer = AdornerLayer.GetAdornerLayer(myCanvas);
myAdornerLayer.GetAdorners(myCanvas);
This returns null all the time which makes scene because Each user control
has its own adorner layer I guess. So the question would be how to change the
adorners z-order in relation to the parent container.
"Mark Salsbery [MVP]" wrote:
Quote:
> What about changing the order of the items in the array returned by
> AdornerLayer.GetAdorners()?
>
> Mark
>
> --
> Mark Salsbery
> Microsoft MVP - Visual C++
>
>
> "JFlorero" <JFlorero@xxxxxx> wrote in message
> news:2461EDB7-3EA1-409E-90F2-67FF4059F100@xxxxxx Quote:
> > Does anybody know how to change the Z order of adorners in the
> > AdornerLayer
> > of a Canvas? I can change the Z order of child UIElements but I cannot
> > find a
> > way to change the z order of the adorners.
> >
> >