Is it possible to have a floating panel on top of main window?

杨岑 171 Reputation points
2024-04-21T16:49:28.2933333+00:00

I see that creating a another window in UWP is extremely difficult. Is it possible to let a panel or something floating like a tool window on top of main window?

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 19,651 Reputation points Microsoft Vendor
    2024-04-22T03:38:07.93+00:00

    Hi @杨岑

    Welcome to Microsoft Q&A!

    It is possible to use floating windows, but it is difficult to achieve the desired effect. According to these two documents,

    I tried it. After using AppWindow, the floating window cannot change the minimum height, and the effect is very bad. Using ApplicationView, since it is in a separate thread, it is difficult to interact with the Main window.

    If you need a top toolbar, I recommend you take a look at the custom title bar.

    A Windows app with a search box in the title bar

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.