I've tried to embed VLC into my WPF project. I've registered the axvlc.dll. Also downloaded VLC nightly build version 2.2.2
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'The invocation of the constructor on type 'Proj1.MainWindow' that matches the specified binding constraints threw an exception.' Line number '3' and line position '9'.
The thing is that I already successfully embedded the VLC in another project. I've also updated the PresentationFramework.dll to newer version.. Why do I get this exception? At my project I've just a window with windowsFormHost control and that's it. Here's my code:
AxVLCPlugin2 vlc = new AxVLCPlugin2();
winFormHost.Child = vlc;
vlc.CreateControl();