Overlapping issue with ResizingAdorner. How to change Z-order?
-
I am using ResizingAdorner class to resize user controls. The problem is that when a user control overlaps another, then the resize adorner of the user control beneath still remains active. Due to this sometimes the user control below gets selected, although I wanted to select something on the overlapping user control. I guess playing with z-order of the adorning layer should solve the problem. But how do I get/ set the z-order of the user control and/ or the adorning layer?
Pankaj Chamria, Software Programmer.
-
I am using ResizingAdorner class to resize user controls. The problem is that when a user control overlaps another, then the resize adorner of the user control beneath still remains active. Due to this sometimes the user control below gets selected, although I wanted to select something on the overlapping user control. I guess playing with z-order of the adorning layer should solve the problem. But how do I get/ set the z-order of the user control and/ or the adorning layer?
Pankaj Chamria, Software Programmer.
ResizingAdorner is your Custom adorner class so I am not sure what you have in there. I took a look at the ResizingAdorner[^] sample of MSDN. Is that what you are using ? AdornerLayers have the same Z-index. Read this - similar scenario[^]
-
ResizingAdorner is your Custom adorner class so I am not sure what you have in there. I took a look at the ResizingAdorner[^] sample of MSDN. Is that what you are using ? AdornerLayers have the same Z-index. Read this - similar scenario[^]
Yep. I am using the ResingAdorner from MSDN sample. It shows up 4 corners on the rectangular user control, using which we can do resizing. Now when I drag & overlap a user control onto another one. The resizing corners of the user control beneath are still visible on the overlapped user control. As if the overlapped user control is transparent. The article you pointed seems to be holding the solution to this problem. But i'll have to first get a hang of this AdornerLayer/ Decorator thing :>
Pankaj Chamria, Software Programmer.