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. Web Development
  3. ASP.NET
  4. Composite Custom Control problem!

Composite Custom Control problem!

Scheduled Pinned Locked Moved ASP.NET
wpfdesignhelptutorial
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.
  • L Offline
    L Offline
    luckykhalid
    wrote on last edited by
    #1

    I have made a collapsible composite custom control that has two panels acting as Header and Body of the control. I dont know how to make its designer so that users of the control are able to drag and drop controls in its Header or Body. I can add/remove controls in them programmatically but I dont know how to make it work at design time. I dont want to use Templates in my custom control. I want to use all the properties of Panel control and thats why I am using Panels as Header and Body of the control. But I want to make it behave like two editable regions at design time too. Thank You

    Regards Khalid

    M 1 Reply Last reply
    0
    • L luckykhalid

      I have made a collapsible composite custom control that has two panels acting as Header and Body of the control. I dont know how to make its designer so that users of the control are able to drag and drop controls in its Header or Body. I can add/remove controls in them programmatically but I dont know how to make it work at design time. I dont want to use Templates in my custom control. I want to use all the properties of Panel control and thats why I am using Panels as Header and Body of the control. But I want to make it behave like two editable regions at design time too. Thank You

      Regards Khalid

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You may consider providing your own control with a control designer. ASP.NET Control Designers Overview [^]

      L 1 Reply Last reply
      0
      • M minhpc_bk

        You may consider providing your own control with a control designer. ASP.NET Control Designers Overview [^]

        L Offline
        L Offline
        luckykhalid
        wrote on last edited by
        #3

        I know that I would have to make a custom designer for my control. The problem I am getting is that I have not used ITemplate in my custom control and I just dont want to use it for some reason. Instead, I have used Panel controls in my Custom Control. So, in this situation how can I make my custom designer so that there are two editable regions over it that actually make Header and Body of the control and correspond to respective Header and Body Panels of the control.

        Regards Khalid

        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