tags:

views:

39

answers:

1

In traditional winforms development I have become accustomed to the [DesignerSerializationVisibility] attribute to prevent the designer trying to serialize properties that shouldn't be serialized at design time.

This doesn't seem to exist in silverlight. What is the equivalent way to hide a property from the designer.

+2  A: 

It's still the BrowseableAttribute, but you'll need to apply it via Design time Metadata.

Read more about it in my blog post @ Silverlight Design time Extensibility
And Ning Zhang's blog @ http://www.ningzhang.org/

My original design time article specifically mentions BrowsableAttribute.

As part of the Silverlight Toolkit we shipped source code for Silverlight Toolkit & SDK Design time metadata which you can use as a sample.

JustinAngel