AlternateContentProperty attribute

A new extension point we have added to Blend 3 (based on very popular demand) can be seen put to good use with the Silverlight Chart control - we call it the AlternateContentProperty attribute. Annotating the properties of a control with this attribute allows you to select objects that are set as values (including DepedencyObjects) to be selected in the Blend object tree, thereby exposing a ton of new functionality like the ability to set properties on those objects, edit templates if those objects were FrameworkElements, or set new objects as values of these properties.

Kudos to the Silverlight toolkit team for jumping onto this (I hope a lot more people notice and use this feature in Blend 3 as it really, really enables designers).

Comments (4)

  1. Unni's Blog says:

    While Blend 3 has a number of stellar features that I am sure everyone reading this blog has heard about

  2. energex says:

    We use this extensively, thanks

  3. Daniel Greitens says:

    But there are differences between Silverlight and WPF!

    In Silverlight, you can find a property AlternateContentProperty in the namespace System.ComponentModel. Just put it over your property and it will show up in Blend like the Header-property of headercontentcontrol. The problem is, that in WPF you will not find this property in this namesspace 🙁

    But: Add the reference Microsoft.Windows.Design.Interaction to your project, and use Microsoft.Windows.Design.PropertyEditing; in your class. And here we are. AlternateContentProperty can be placed over the properties 🙂

Skip to main content