> Well, no, I generally don't want to go creating skins.  Sure, if I was 
> building a component to add to a library, that would make sense, but I'm 
> thinking more often of just ways of splitting a window into manageable 
> pieces.  You have the bxml:include construct to help with that, but I don't 
> want to just include markup, I want to also include the "backing class" for 
> that markup.
> 
> E.g., in WPF, I might create a component Foo to handle the interaction in one 
> tab of what you call a TabPane.  So the contents of the tab would be just
> 
>    <my:Foo Name="myFoo" />
> 
> In Pivot, since backing classes aren't tied explicitly to bxml, I believe I'd 
> have to say the wordier
> 
>    <bxml:include bxml:id="myFoo" src="Foo.bxml" />

That's correct - this is because BXML isn't compiled, whereas XAML is.

> and the root element of Foo.bxml would be my:Foo.  So my question amounted 
> to, what should Foo ideally extend so as to carry the least baggage?

It really depends on your app. I often end up subclassing Window or one of its 
subclasses, since these generally represent reusable chunks of functionality.

G

Reply via email to