Tuesday, August 28, 2012

Showing multiple child elements in the Objects and Timeline Panel in Blend for Silverlight

Showing multiple child elements in the Objects and Timeline Panel in Blend for Silverlight

I've noticed a discrepancy in the way Silverlight and Blend handle displaying multiple child elements in the visual tree.

Consider a headered content control like TabItems in a TabControl, or an Expander (part of the Silverlight toolkit). For WPF, both have entries in the Objects and Timeline visual element tree for Header and Content. In Silverlight, the header is never shown as part of the element tree, although you can still manipulate it in XAML and in code.

I am working with some custom controls which define multiple named child elements. That is, instead of Header and Content, I am trying to organize FrontContent, BackContent, HeaderContent, FooterContent, etc., multiple named content presenters exposed as a DependencyProperty for an object.

Is there any way to get the Silverlight element tree to function as it does in WPF?

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog