I am trying to pass input devices through Microsoft.Expression.Encoder, and now I can display them using WindowsFormsHost in WPF, but this is always problematic for other things like the AllowTransparency property etc.
Is there a way to display it without WindowsFormsHost?
CODE: (C #)
App.deviceSource.PreviewWindow = new PreviewWindow(new HandleRef(panel1, panel1.Handle));
Xaml
<WindowsFormsHost x:Name="windowsFormsHost" Background="Black" Margin="12,12,12,59">
<wf:Panel Margin="0,0,0,0" x:Name="panel1" Size="836,600" />
</WindowsFormsHost>
source
share