> > I'm really not sure what you are trying to accomplish, > The short answer is I'm trying to mimic WPF's UserControl.
Longer answer. I want a methodology for creating custom Component subclasses using BXML markup. I want to be able to place such a component into other components, sometimes by markup (bxml:include), sometimes programmatically (by deserializing the bxml, which as I described earlier, I hide by a static factory method on my component's class). Seems like I need to subclass a container, since otherwise how does the bxml serializer interpret the child of the root element? While I will normally make that child itself be some kind of container, I think it's more straightforward and easier to understand the bxml if the particular container I've selected for my layout needs is right there in the bxml, rather than somehow implicit in the root element's class and varying from one bxml file to another. Yes, it's an extra layer of indirection, but I think it's conceptually simpler. Panel is certainly not what I want. I do want my component to undergo layout. Panel children have to specify x, y, and size. Not remotely what I'm interested in. There's a separate question for later on about what kind of support exists for defining your own custom containers, but this is not it.
