Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Overlapping issue with ResizingAdorner. How to change Z-order?

Overlapping issue with ResizingAdorner. How to change Z-order?

Scheduled Pinned Locked Moved WCF and WF
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pankaj Chamria
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • P Pankaj Chamria

      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.

      A Offline
      A Offline
      ABitSmart
      wrote on last edited by
      #2

      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[^]

      P 1 Reply Last reply
      0
      • A ABitSmart

        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[^]

        P Offline
        P Offline
        Pankaj Chamria
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups