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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ibrahim ErsoyPosted May 11, 2010, 12:42 PM
you cant enable them.
WPF controls are XAML-supported controls.And windows controls arent.
But you can add windows controls inside wpf in one way:
Use WindowsFormHost:
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
Title="Window1" Height="300" Width="300">
I hope it helps
Cheers,