The ForegroundWindow (Windows Form Host) gets Hidden and its Height gets reduced when added into a Popup Window for doing full screen.
Summary
The ForegroundWindow (Windows Form Host) gets Hidden and its Height gets reduced when added into a Popup Window for doing full screen.
Minimal project and steps to reproduce
Workflow: Add a primary Grid (x:Name="primaryGrid") and then add another Grid (x:Name="VideoGrid") with the VideoView control (x:Name="VideoView") in the Grid Add some content (Canvas for drawing) inside the VideoView Xaml node.
After clicking the full screen button at runtime remove the Grid (x:Name="VideoGrid") from the primary Grid (x:Name="primaryGrid") and add it to a new Grid (x:Name="popupContainerGrid") which is inside a Popup (x:Name="FullScreenPopup")
After this resize the Popup (x:Name="FullScreenPopup") and the Grid (x:Name="VideoGrid") to ocupy the entire screen (Full Screen)
Observed that the Video View gets resized but the content (Canvas) inside the Video View vanishes. After doing snoop observed that the ForegroundWindow (Windows Form Host) gets Hidden and its Height gets reduced.
Related WPF .net solution added to "https://github.com/tusharhub1978/VLCLIB.git" Functional steps to reproduce the behavior (if necessary):
What is the current bug behavior?
Observed that the Video View gets resized but the content (Canvas) inside the Video View vanishes. After doing snoop observed that the ForegroundWindow (Windows Form Host) gets Hidden and its Height gets reduced.
What is the expected correct behavior?
The contents (Canvas) of the VideoView mainly the ForegroundWindow (Windows Form Host) also needs to be scaled along to Video View
Does it work on other plaforms? Does it work with the official VLC apps?
did not try on other platforms
Relevant logs and/or screenshots
NA
Environment
OS: Windows 64 bit Version Win10, Win7 embeded Device: Desktop PC LibVLC version and architecture 3.0.11.0 LibVLCSharp version 3.4.9.0 LibVLCSharp.WPF 3.4.9.0
Possible fixes
Please suggest...