PDA

View Full Version : Using IcImagingControl in WPF



Jerry
August 25, 2017, 10:11:52
Hi,

I was wondering if anyone has had success using IcImagingControl inside a WPF WindowsFormsHostControl?

I am finding that the IcImagingControl is not visible if the WindowsFormsHostControl is itself contained by another WPF control.

Thanks

Jerry

martinizq
September 16, 2017, 02:48:34
From Code Behind, was quick. I haven't tried MVVM yet.


<DockPanel LastChildFill="True">
<WindowsFormsHost
Name="ImaginSourceWF"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" />
</DockPanel>


public VideoView(ICImagingControl value)
{
ImaginSourceWF.Child = value;
ImaginSourceWF.Height = imageControl.Height;
ImaginSourceWF.Width= imageControl.Width;
}