window form controls in wpf are disabled

Posted by Jayakumarkm under WPF on 4/4/2010 | Views : 2360 | Status : [Member] | Replies : 1
Click here
hi

i have refered "windows.form" and "windows.form.integration" with wpf application..

so i am getting lot of controls in my toolbox.. bt they are disabled why..

to enable that what i have to do.......

regards
jai




Responses

Posted by: Abhi2434 on: 4/5/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
Well, It is generally not recommended to use GDI Winforms integration in WPF as there are lots of limitation of using it.

If you still like to use it, use only those which are not avoidable.
Regarding the controls, you can place controls inside WindowsFormsHost only. Just create an instance of windowsform, and use

WindowsFormHost.Child = winobj;



www.abhisheksur.com

Jayakumarkm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response