locked
XAML: ApplicationBar not defined compiling AppBar C++ sample.

    Question

  • I tried to build the C++ AppBar sample using the VS11 beta, but the XAML compiler complains that ApplicationBar isn't defined.

    What do I need to do?

    Thursday, March 8, 2012 9:32 PM

Answers

All replies

  • Are you trying to run a Developer Preview sample on the Consumer Preview? The ApplicationBar control was renamed to AppBar. See the //Build to Windows 8 Consumer Preview whitepaper for more information on changes you need to make when migrating an app from the Developer Preview to the Consumer Preview.

    If you're using a current sample can you please provide a link to the specific sample?

    --Rob


    Thursday, March 8, 2012 9:42 PM
    Owner
  • Yes, I was trying to build the Developer Preview version because the newer one has only an HTML/javascript version of the project, which does me little good (a problem with quite a few of the samples, by the way).

    Oh, well.

    Friday, March 9, 2012 1:25 AM