What is the equivalent of [DesignerSerializationVisibility] or [Browsable] in Silverlight?
In traditional winforms development I have become accustomed to the [DesignerSerializationVisibility] attribute to prevent the designer trying to serialize properties that should开发者_StackOverflow中文版n'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.
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.
精彩评论