locked
Pivot is not supported in a Windows App project

    Question

  • I am creating an Universal App, I place a few styles in App.xaml (located in the project <project_name>.Shared), one of them is for Pivot:

    <Style TargetType="Pivot">
    When I build the solution, an error "Pivot is not supported in a Windows App project" is occured, how to fix it? Thanks.


    • Edited by imnbwd Wednesday, October 29, 2014 2:38 PM
    Wednesday, October 29, 2014 9:44 AM

Answers

  • Thre is no Pivot-Control in Windows 8.1. You would have to move that Style definition to the Windows Phone Project (it would not have any effect on the Windows 8.1 App anyway, given that the control you're trying to style does not exist there and can't be used anyway).
    • Proposed as answer by mvermef Friday, October 31, 2014 10:52 PM
    • Marked as answer by imnbwd Tuesday, November 4, 2014 2:13 AM
    Wednesday, October 29, 2014 11:08 AM

All replies

  • Thre is no Pivot-Control in Windows 8.1. You would have to move that Style definition to the Windows Phone Project (it would not have any effect on the Windows 8.1 App anyway, given that the control you're trying to style does not exist there and can't be used anyway).
    • Proposed as answer by mvermef Friday, October 31, 2014 10:52 PM
    • Marked as answer by imnbwd Tuesday, November 4, 2014 2:13 AM
    Wednesday, October 29, 2014 11:08 AM
  • Thanks, I have placed them in a Resource Dictionary file in the windows phone project.
    Tuesday, November 4, 2014 2:15 AM