1
Vote

Error dialog drag & drop button on WPF window on VS 2010

description

VS 2010 SP1 (note I have 2012 Update 4 and 2013 Update 1 installed on the machine too)
Create new WPF App
Open in XAML designer
From toolbox, drag & drop button to the window

Result:
---------------------------
Error Dialog
---------------------------
Object reference not set to an instance of an object.



"Object reference not set to an instance of an object."
---------------------------
OK   
---------------------------
Image

file attachments

comments

Zooba wrote Mar 20 at 8:18 PM

It appears that this only occurs the first time when the designer is open.

(The error comes from within the designer, since it does not have the name of the local assembly containing the UI. We may need to lie about our assembly better in VS 2010, but I think we're probably not going to fix this.)