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. .NET (Core and Framework)
  4. IDesignerHost resources?

IDesignerHost resources?

Scheduled Pinned Locked Moved .NET (Core and Framework)
questionlearningworkspace
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.
  • D Offline
    D Offline
    Dr Herbie
    wrote on last edited by
    #1

    Hi, Does anybody know of any good resources for learning the intricacies if IDesignerHost? I about halfway to where I want to be, but I can't implement my main feature: pre-specified individual controls. E.g. Our configurable dialog has two possible button controls, OK and Cancel. I want to show the user a list of possible controls that will contain an entry for each of these buttons. The ToolboxItem class only handles control types, so I can only specify 'add a button', and not 'add the OK button'. I have tried deriving my own ToolboxItem based classes, but then the built-in drag drop between the toolbox service and the designer host stops working. It's starting to drive me nuts. Configuration is a major feature of our product, so I have to find a way to do this. Any resources or guidance would be very much appreciated. Dr Herbie Remember, half the people out there have below average IQs.

    D 1 Reply Last reply
    0
    • D Dr Herbie

      Hi, Does anybody know of any good resources for learning the intricacies if IDesignerHost? I about halfway to where I want to be, but I can't implement my main feature: pre-specified individual controls. E.g. Our configurable dialog has two possible button controls, OK and Cancel. I want to show the user a list of possible controls that will contain an entry for each of these buttons. The ToolboxItem class only handles control types, so I can only specify 'add a button', and not 'add the OK button'. I have tried deriving my own ToolboxItem based classes, but then the built-in drag drop between the toolbox service and the designer host stops working. It's starting to drive me nuts. Configuration is a major feature of our product, so I have to find a way to do this. Any resources or guidance would be very much appreciated. Dr Herbie Remember, half the people out there have below average IQs.

      D Offline
      D Offline
      Dr Herbie
      wrote on last edited by
      #2

      Solution - in case anyone was interested ... Classes derived from ToolboxItem must be serializable and the IToolboxService DeserializeToolboxItem method must deserialise the correct (derived) type. So now I can manipulate my controls as they are created. Dr Herbie Remember, half the people out there have below average IQs.

      M 1 Reply Last reply
      0
      • D Dr Herbie

        Solution - in case anyone was interested ... Classes derived from ToolboxItem must be serializable and the IToolboxService DeserializeToolboxItem method must deserialise the correct (derived) type. So now I can manipulate my controls as they are created. Dr Herbie Remember, half the people out there have below average IQs.

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #3

        Dr Herbie wrote: Solution - in case anyone was interested ... Cool! And thanks for posting the solution! I've been wondering about what the answer might be, but certainly didn't have enough knowledge to contribute anything. Marc MyXaml Advanced Unit Testing YAPO

        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