XAML Designer crashes Object reference not set to an instance of an object

后端 未结 3 484
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 06:05

I\'m using Visual Studio 2015 Community.

So, I created a blank UW App (C++) and I wanted to start looking around, because that\'s my first time using the XAML Designer.

相关标签:
3条回答
  • 2021-01-24 06:29

    You're probably using static resources or theme resources (for brushes or something like that) that aren't used by Windows 10 UAPs. Try removing the static resources from your XAML files and see if your app works.

    0 讨论(0)
  • 2021-01-24 06:33

    Can you try creating a UWP C# project and F5? After this try opening your C++ XAML Designer again and it should fix the designer.

    0 讨论(0)
  • 2021-01-24 06:36

    This worked for me: go to Environment Variables and look for Platform HPD. Delete it.

    0 讨论(0)
提交回复
热议问题