WPF Always On Top
c#, topmost, wpf
Solution
This won't work 100% of the time, but it will improve the situation somewhat. You can set `Topmost = true` in the handler for the `Window.Deactivated` event:
private void Window_Deactivated(object sender, EventArgs e)
{
Window window = (Window)sender;
window.Topmost = true;
}
The `Deactivated` event will be called whenever your application loses focus (often when another application requests to be `Topmost`) and so this will reset your application on top after this.
Problem
Is it possible to make a window stay always on top even when other application is running on Fullscreen? I'm using right now `TopMost = true` but when other application is running on fullscreen mine becomes invisible. It's `WindowStyle = None` window by the way. Edit: And do not let other window minimalize ofcourse