Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 App.cs 中收到此错误,任何帮助,我尝试清理并再次构建但没有。
有问题的行不应该如下: -
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
如果您删除了<PhoneApplicationService>from App.xaml,它将为空。要么实例化它,要么确保<PhoneApplicationService>它存在于你的 XAML 中。
<PhoneApplicationService>
App.xaml