This problem happens within the VS2012 UI with the sample project whenever I try to edit the RadTimeSpanPicker in design view. The project runs fine in the emulator. Also, I don't see the problem if I use Expression Blend to edit. I see similar problems (with different errors) in design view if I create my own project, although it does compile and run in the emulator.
I'm not sure if this is my environment, but I tried uninstalling and reinstalling RadControls and the WP7 and WP8 SDKs, with same result. If this is a known issue, any suggestions would be appreciated. Thanks ahead of time.
Here are the particulars...
Dev environment: RadControls for Windows Phone 7 Q3 2012. VS2012 Ultimate, update 1. Win8/x64 Pro.
Here is how I repro the problem:
- Open the sample solution, ExamplesCS_WP.sln for WP7, in VS2012.
- In Examples_WP project, under the TimeSpanPicker, open FirstLook.xaml in design view by double-clicking in solution explorer.
- Wait for XAML to render in design view window, notice that everything looks OK, including TimeSpanPicker control.
- Click on TimeSpanPicker control in design view
Result: Design disappears from view window and is replaced with an exception message. Solution is not buildable until design view is closed, apparently because of locked files. Here is the exception message...
An Exception was thrown.
NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Expression.HostUtility.UriResolver.ComponentUriResolver.Parse(Uri uri, Uri baseUri, String assemblyName, IHostProject project)
at Microsoft.Expression.HostUtility.UriResolver.ComponentUriResolver.TryResolve(Uri uri, String rootPath, String documentPath, String assemblyName, HostDesignTimeUriInfo& uriResolutionInfo)
at Microsoft.Expression.HostUtility.UriResolver.UriResolverFactory.TryResolve(Uri uri, String rootPath, String referencingDocumentPath, String assemblyName, HostDesignTimeUriInfo& uriResolutionInfo)
at Microsoft.Expression.HostUtility.UriResolver.UriResolver.TryResolve(Uri uri, String rootPath, String referencingDocumentPath, String assemblyName)
at Microsoft.VisualStudio.ExpressionHost.HostServices.HostProjectService.Microsoft.Expression.DesignHost.IHostProjectService.MakeThemeResourceDesignTimeUri(Uri uri, String rootPath, String referencingDocumentPath, String assemblyName)