Unable to determine application identity of the caller?

后端 未结 1 2026
谎友^
谎友^ 2021-01-11 10:56

I\'m writing a Silverlight pivot app in VS2010 for Windows Phone. I just added the example code from msdn here. Now every time I reload the designer I get an exception:

相关标签:
1条回答
  • 2021-01-11 11:27

    You need to add a check to DesignerProperties.IsInDesignTool to that code since accessing IsolatedStorageSettings in Visual Studio or Expression Blend is invalid.

    if (!System.ComponentModel.DesignerProperties.IsInDesignTool)
    {
         settings = IsolatedStorageSettings.ApplicationSettings; 
    }
    
    0 讨论(0)
提交回复
热议问题