Search code examples
xamlsilverlightwindows-phone-7pivot

How do I hide a PivotItem?


I have a Page with an Pivot-control and in some cases I don't want to show a particular PivotItem.
Setting the Visibility to collapsed doesn't seem to affect it at all.

Any suggestions?


Solution

  • you should be able to remove or add PivotItems dynamically in your Pivot by using the respective collection methods on Pivot.Items .

    Let me know if this doesn't work for your scenario.