Search code examples
silverlight-3.0prismdataform

AG_E_PARSER_BAD_TYPE error when using DataForm control in Prism/silverlight 3


I'm using prism and SL3, as soon as I drop a DataForm Control in any modules, I get this error:

AG_E_PARSER_BAD_TYPE [Line: 6 Position: 31]
at System.Windows.Application.LoadComponent(Object component, Uri 
  resourceLocator)
at HelloWorldModule.Views.HelloWorldView.InitializeComponent()
at HelloWorldModule.Views.HelloWorldView..ctor()

I don't get this error if I drop the DataForm control in my Shell.xaml, only if I drop in any views in the modules. Can anyone shed some light?


Solution

  • You need to add Microsoft.Windows.Controls to your ModuleManifest.xaml..