I have a working project with Map, Legend and Navigation objects. After changing project type from Silverlight 4 to 5 it still compiles. But I get a runtime error at InitializeComponent() in the Constructor.
System.Windows.Markup.XamlParseException occurred Message=Set property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 91 Position: 85] LineNumber=91 LinePosition=85 StackTrace: at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at ***.ArcGisMap.View_ArcGisMap.InitializeComponent() at ***.ArcGisMap.View_ArcGisMap..ctor() InnerException: System.Windows.Markup.XamlParseException Message=Failed to create a 'System.Type' from the text 'local:FeatureDataGrid'. [Line: 13 Position: 36] LineNumber=13 LinePosition=36 StackTrace: at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers, String xamlResourceUriString, Boolean isBinaryContent) at System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle)
The expception goes away if I recompile and run as Silverlight 4. Or get rid of both Navigation and Legend.
That is, I tried and, having something as simple as