question

GeraldRowe-4316 avatar image
0 Votes"
GeraldRowe-4316 asked GeraldRowe-4316 commented

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

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!

dotnet-csharpwindows-apiwindows-wpfwindows-forms
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,@GeraldRowe-4316 . What is your current project? What are the specific steps used in each project, and the relationship between them? Please clarify the question.

0 Votes 0 ·

My project is WPF or Winform project

My problem:
let my app over anyone a uwp full-screen window
if anyone app is win32 or uwp not full-screen window,everything is ok(Using the above said to the two methods)
But not work in uwp full-screen window


I want to achieve like windows10 the volume bar in the upper left corner

141756-image.png


0 Votes 0 ·
image.png (59.2 KiB)
Castorix31 avatar image
1 Vote"
Castorix31 answered GeraldRowe-4316 commented

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



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Think you very mush,it's solved my problem

0 Votes 0 ·

by the way, it's support on windows 8/10/11

0 Votes 0 ·
karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered GeraldRowe-4316 commented

UWP ApplicationView.TryEnterFullScreenMode

WPF

 WindowStyle="None"
 WindowState="Maximized"



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

WindowState="Maximized" Depending on the solved some problems(cannot work in alt+tab change or focus UWP full-screen mode)
But my wpf WindowState="Normal" like OSD(On Screen Display)
Example: The volume bar in the upper left corner

141509-volume-bar.png


0 Votes 0 ·
volume-bar.png (33.0 KiB)