Cannot find a Resource with the Name/Key PhoneProgressBarBackgroundBrush

前端 未结 2 1297
孤街浪徒
孤街浪徒 2021-01-23 01:49

I am trying to debug this issue for last 2 days, I have tried all the solutions available on SO and Microsoft connect but can\'t seem to find any solution.

I downloaded

2条回答
  •  忘了有多久
    2021-01-23 02:26

    Had same issue, reinstalling WP8 SDK didn't help either.

    The problem can be overcome by adding ThemeResources.xaml to the project resources as follows:

    Blend: In project view, right click Resources folder and choose "Link to existing item...". Add C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Design\ThemeResources.xaml there and it should work.

    VS2012: In Solution Explorer, right click folder "Resources" and choose "Add" -> "Existing item...". Navigate to C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Design\ThemeResources.xaml and choose "Add as link".

    I've got no idea about the root cause i.e. why ThemeResources.xaml isn't included in the new project.

提交回复
热议问题