PDA

View Full Version : Can I use ICImagingControl in WPF Application?



Urushi
May 25, 2010, 04:33:25
Dear.Stefan!

I want to use ICImagingControl V3.1 in my WPF form application.

Please tell me how to use ICImagingControl in WPF form application.

Best regards, Urushi:question:

Stefan Geissler
May 25, 2010, 10:32:44
In WPF there is a special container for no WPF controls.

Add an instance of IC Imaging Control to your window class:
TIS.Imaging.ICImagingControl icImagingControl1 = new TIS.Imaging.ICImagingControl("Insert your
license key here");

On the WPF designer, insert a WindowsFormsHost element at the area where you want the live
display.
(In XAML, this is <WindowsFormsHost Name="windowsFormsHost1"/> ).

In the Window_Loaded event handler, set
windowsFormsHost1.Child = icImagingControl1;

You now have IC Imaging Control visible and ready to work in the WPF application.