开发者

What is the equivalent of [DesignerSerializationVisibility] or [Browsable] in Silverlight?

开发者 https://www.devze.com 2022-12-14 03:26 出处:网络
In traditional winforms development I have become accustomed to the [DesignerSerializationVisibility] attribute to prevent the designer trying to serialize properties that should开发者_StackOverflow中

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消