Page 1 of 1

VLC Player in WPF (C#) Application

Posted: 22 May 2012 23:27
by AlessioElia
Hi mate,
I'm developing a .NET (WPF platform) application. I'm using VLC ActiveX for play some videos.
But i want to overlap a picture on the Activex.
Actually the player is always in foreground and the picture is hidden.
Is there a property that i can use for do this?
Thanks,
Alessio.

PS: For use Vlc ActiveX i use the Windows Form Host component.
The ActiveX is :VLC ActiveX Plugin v1.0

PPS Sorry for my English :oops:

Re: VLC Player in WPF (C#) Application

Posted: 25 May 2012 15:54
by XilasZ
In the same window, Windows Form components will always be drawn on top of wpf controls, that is a limitation of .NET, and there is nothing you can do to change that.

You can use use vmem to get raw frames, and display them yourself in a wpf control.
An easier workaround is to use 2 wpf windows (one with the windows form host below, and one with wpf stuff above), and keep them in sync (position, size, state).