IDesignerHost resources?
-
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.
-
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.
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.
-
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.
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