drag wpf user control to design surface in orcas beta2
-
Tuesday, July 31, 2007 9:49 PMHello-
I would like to be able to create a wpf user control, add it to the toolbox and then be able to drag and drop it onto a wpf application. I have beta2 installed.
Here's what I've tried:
1) create a wpf user control. Add a button.
2) build the control
3) create a wpf application
4) right click on the toolbox and select "choose items"
5) select the wpf component tab, and browse to the wpf control dll and select it <I used the debug build is this ok?>
6) Observe that the control appears in the toolbox
7) Try to drag and drop the user control onto the design surface.
8) A Not Allowed <circle with a line through it appears> when I try to drag it onto the wpf form.
I know this is possible by hand coding the xaml, but I would like to be able to do this from the toolbox. Is this possible? If not how come the control appears in the toolbox?
Thanks so much in advance!
Rob
All Replies
-
Wednesday, August 01, 2007 6:48 PM
Hey Rob,
I am actually trying to do a very similar thing. It looks as though things are getting better with beta2, but not perfect yet. I was able to add the wpf control to the toolbox AND was able to drag it on to the wpf form, but only after I added the namespace tag ( xmlns:cust="clr-namespace...) to the form, and added a reference to the control library assembly.
Baby steps!
-Bob
-
Thursday, August 02, 2007 3:09 AMModerator
You can ask questions related to Cider designer in this forum. Probably you'll get better answers than asking in WPF technique forums. -
Friday, August 03, 2007 11:27 PMModerator
Thank you for your error report.
I have reproduced this error on beta 2 and have confirmed that in later bits (internal) this problem is solved.
Jim
-
Monday, August 06, 2007 7:20 PMOwner
I think this is caused by a bug where we can't add controls to the designer is there is a space in the directory path to the control assembly. Try putting the assembly in a location with no spaces in the directory names and see if that works for you
mark
-
Monday, December 10, 2007 2:50 PM
i didn't have this issue in beta 2 but i am however now getting this issue in the professional rtm version of vs 2008? any input?
-
Monday, December 10, 2007 5:49 PMOwner
Can you describe exactly the issue you are seeing with steps to reproduce it?
thanks
mark

