Menu
  • HOME
  • TAGS

WPF designer error Value cannot be null. Parameter name: pattern

c#,wpf,xaml,objectdataprovider

I don't believe it's a VS bug. Try adding the property IsAsynchronous="True" to the ObjectDataProvider and that should eliminate the designer error. The property defaults to False and the designer will try to create the object in the active context. Here's link: ObjectDataProvider Worked for me. Hope it works for...

Is it possible to pass current DataContext as ContructorParameter of ObjectDataProvider?

c#,wpf,datatemplate,datacontext,objectdataprovider

Thanks to Magnus (MM8) for the answer here: Is it possible to pass current DataContext as ContructorParameter of ObjectDataProvider?