I'm building a small .NET desktop app with C#. I have a video playing on topmost window (System.Windows) where we can control transparency of the Media Element and Window so we can see all windows below of this window.
My goal is to get mouse and keyboard events through this topmost window for all windows below. User like to play the video and work with other window same time.
We are making our Mac OS version for Windows users.
I can do that on Mac OS by this property.
self.ignoresMouseEvents = true;
This is my video player window.
<Window x:Class="VideoPlayerWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SSAPlayerApp"
mc:Ignorable="d"
Title="VideoPlayerWindow" Height="450" Width="800"
WindowStartupLocation="CenterScreen" AllowsTransparency="True"
WindowStyle="None" Topmost="True" ShowActivated="False" MouseDown="Window_MouseDown" KeyDown="Window_KeyDown">
<MediaElement x:Name="player" Width="450" Height="250" MouseDown="Window_MouseDown" KeyDown="Window_KeyDown" LoadedBehavior="Manual" MediaOpened="player_MediaOpened" MediaEnded="player_MediaEnded" MediaFailed="player_MediaFailed"/>
Can anybody help?
Here is the Mac OS answer App window on top of all windows including others app windows