You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
We cannot fix airspace. Maybe we can fix VLC control, but not general problem with Winforms. This is caused by the method of rendering WPF and Winforms controls and windows. I think, at the moment, we can base only on workarounds.
This could be fixed by #249 : If there is no reference to winforms, then there is no airspace issue, am I wrong? the option I'm thinking of is using DirectX to do the rendering, rather than using WinForm/HWND. vlc-winrt is already using that technique for win10 apps
Sure. No Winforms/Win32Api == no airspace. DirectX is rendered the similar way to WPF. Avoiding problem is avoid, not solve ;) #249 is not about fixing airspace, rather about making something very new and different of current solution. We can use HWND of WPF Window directly and it will not need a reference to Windows.Forms, but airspace effect will not disappear. My workaround is for general mixing Winforms and WPF, not only for Vlc.DotNet control ;)
Activity
adamfierek commentedon Sep 12, 2017
https://github.com/kolorowezworki/Airhack
Try this. It's quite dirty, but it works ;)
jeremyVignelles commentedon Sep 12, 2017
Thanks for providing a workaround! I'll keep this open until this is fixed or considered as an acceptable solution (I'd prefer the first option)
adamfierek commentedon Sep 12, 2017
We cannot fix airspace. Maybe we can fix VLC control, but not general problem with Winforms. This is caused by the method of rendering WPF and Winforms controls and windows. I think, at the moment, we can base only on workarounds.
jeremyVignelles commentedon Sep 12, 2017
This could be fixed by #249 : If there is no reference to winforms, then there is no airspace issue, am I wrong? the option I'm thinking of is using DirectX to do the rendering, rather than using WinForm/HWND. vlc-winrt is already using that technique for win10 apps
adamfierek commentedon Sep 13, 2017
Sure. No Winforms/Win32Api == no airspace. DirectX is rendered the similar way to WPF. Avoiding problem is avoid, not solve ;) #249 is not about fixing airspace, rather about making something very new and different of current solution. We can use HWND of WPF Window directly and it will not need a reference to Windows.Forms, but airspace effect will not disappear. My workaround is for general mixing Winforms and WPF, not only for Vlc.DotNet control ;)
jeremyVignelles commentedon Sep 14, 2017
A comment in #257 shows a workaround for the Airspace issue in stackoverflow : https://stackoverflow.com/questions/5978917/render-wpf-control-on-top-of-windowsformshost/23662410#23662410
JUSTHassan commentedon Nov 1, 2017
A powerful workaround https://stackoverflow.com/a/43695349/1576027
<interop:AirspaceDecorator AirspaceMode="Redirect" Background="White" IsInputRedirectionEnabled="True" IsOutputRedirectionEnabled="True"> <Wpf:VlcControl x:Name="vlcControl" Margin="0,0,0,0"/> </interop:AirspaceDecorator>jeremyVignelles commentedon Jan 2, 2018
Will be solved in 3.0.0 when #365 gets merged
jeremyVignelles commentedon Jan 20, 2018
Should be fixed in 3.0.0-develop250