Search code examples
windows-phone-7design-timetoolbox

What are the equivalents for DesignTimeVisibleAttribute and ToolBoxItemAttribute in WP7?


What are the equivalents for DesignTimeVisibleAttribute and ToolBoxItemAttribute in WP7?

We can use those two attributes to show/hide a certain control in design time, but the WP7's FCL does not include them.

What is the alternative solution?

Thanks

In short terms: how to hide a WP7 custom control from the toolbox of Visual Studio??


Solution

  • IProvideAttributeTable

    AttributeTableBuilder

    ProvideMetadataAttribute

    Just search for these three classes, that's how I fixed it.