AppBarButtonStyles cause UNHANDLED EXCEPTION RRS feed

  • Question

  • Same as title.

    When I add AppBarButtonStyle into my App and debug it, Windows 8.1 will throw a UNHANDLED EXCEPTION,

    (throwed from Windows.UI.Xaml.dll)

    Even I copied or uncommented any AppBarButtonStyle in StandardStyles.Xaml, it still crash when I run it.

    I want to know why and how to fixed.

    P.S. It is no any problem when I test Windows 8.1 App, I still can not know why Windows 8 will crash.

    Saturday, December 7, 2013 8:16 AM


  • Well, I found the answer.

    I put my AppBarButton Resource into an individual ResourceDictionary, however XAML Parsing Engine can not automatically search and parse Based Resource in StandardStyles.xaml, then CRASHED.

            <ResourceDictionary Source="ms-appx:///Common/StandardStyles.xaml"/>

    I put it in that Individual Resource Dictionary, then done.
    Sunday, December 8, 2013 5:35 AM

All replies