S
Sergio Florez M.
I created a button control that I'll call MyButton. I also created a
composite control that will have among other things a toolbar composed of
MyButtons. Let's call this control MyCompositeControl. I want the
MyCompositeControl to have a Buttons property that will be a MyButton
collection. I created a MyButtonsCollection inheriting from CollectionBase
and implementing IEnumerable. The Buttons property in MyCompositeControl is
a MyButtonsCollection.
My control already admits Buttons and this is more or less how it all looks
in the aspx:
<xxx:MyCompositeControl id="MyCompositeControl1" runat="server>
<Buttons>
<xxx:MyButton ID="MyButton1" SomeProperty="111"></xxx:MyButton>
<xxx:MyButton ID="MyButton2" SomeProperty="222"></xxx:MyButton>
<xxx:MyButton ID="MyButton3" SomeProperty="333"></xxx:MyButton>
</Buttons>
</xxx:MyCompositeControl>
What do I have to do to get the Object Collection Editor that opens up when
I click the "..." button that shows up in the properties pane for the
Buttons property to add MyButton objects to it?
One other question, MyCompositeControl look fine in design time until I
start with the <Buttons> tag, once I start adding buttons I get "Error
creating control" in the designer. How do I fix this?
The functionality of the control is all up and running, these are just
designer issues that I want to comprehend.
Is any of this understandable at all?
composite control that will have among other things a toolbar composed of
MyButtons. Let's call this control MyCompositeControl. I want the
MyCompositeControl to have a Buttons property that will be a MyButton
collection. I created a MyButtonsCollection inheriting from CollectionBase
and implementing IEnumerable. The Buttons property in MyCompositeControl is
a MyButtonsCollection.
My control already admits Buttons and this is more or less how it all looks
in the aspx:
<xxx:MyCompositeControl id="MyCompositeControl1" runat="server>
<Buttons>
<xxx:MyButton ID="MyButton1" SomeProperty="111"></xxx:MyButton>
<xxx:MyButton ID="MyButton2" SomeProperty="222"></xxx:MyButton>
<xxx:MyButton ID="MyButton3" SomeProperty="333"></xxx:MyButton>
</Buttons>
</xxx:MyCompositeControl>
What do I have to do to get the Object Collection Editor that opens up when
I click the "..." button that shows up in the properties pane for the
Buttons property to add MyButton objects to it?
One other question, MyCompositeControl look fine in design time until I
start with the <Buttons> tag, once I start adding buttons I get "Error
creating control" in the designer. How do I fix this?
The functionality of the control is all up and running, these are just
designer issues that I want to comprehend.
Is any of this understandable at all?