how to make my wpf/winform window over a uwp full-screen window

Gerald Rowe 21 Reputation points
2021-10-18T13:29:54.897+00:00

I've tried two methods
1、Property Topmost=true
2、User “user32.dll” API (private static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags);)
The two methods in the win32 application, there is no problem.
But,The two methods in UWP full screen mode application, There is no effect.
Who can tell me what should I do!

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,834 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,676 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,426 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,277 questions
{count} votes

Accepted answer
  1. Castorix31 81,741 Reputation points
    2021-10-20T12:33:41.71+00:00

    See the answer from Yoav Haimovich (about uiAccess) in this blog post : Windows 8: TopMost vs. TopMost

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Karen Payne MVP 35,036 Reputation points
    2021-10-18T20:05:20.027+00:00

    UWP ApplicationView.TryEnterFullScreenMode

    WPF

    WindowStyle="None"  
    WindowState="Maximized"