question

SmilingMoon avatar image
0 Votes"
SmilingMoon asked SmilingMoon commented

UWP Multiple views comes out of main window?

https://docs.microsoft.com/en-us/windows/uwp/design/layout/show-multiple-views

In this page, the animated image on top shows the exact use case what I want.
The screen was part of main window and when user clicks top-right corner button, the exact screen comes out of main window as secondary window.
One more thing I want is when user clicks another button, the windows go back to the main windows as it was.

I read the document and uwp sample applications, but None of them actually behavior like the image on the page. All examples shows another popup of secondary page.

How can I achieve the use case in uwp app? Any example?
Thank you!

87399-2021-04-13-12-05-16-show-multiple-views-for-an-app.png


windows-uwp
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.

1 Answer

NicoZhu-MSFT avatar image
0 Votes"
NicoZhu-MSFT answered SmilingMoon commented

Hello, Welcome to Micorosoft Q&A,


One more thing I want is when user clicks another button, the windows go back to the main windows as it was.

I'm afraid, you can't show the multiple view like above, currently, UWP has not supported to make ConnectedAnimation for multiple view. And there is no code sample to implement this. If you do want this feature, please feel free post your requirement with windows feed back hub app.


If the response is helpful, please click "Accept Answer" and upvote it.
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.



· 3
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.

I'm not sure if I explain it and understand right.

There are two parts in my question. Could you answer the first part?

  • Make a control in main window a stand alone window with a button click like the image in MS doc page.
    For example, I have Grid in main window containing textboxes and other controls. With one button click, can I move the Grid (or its any parent control) into new window? This is the exact example shown in MS doc page image.
    => Is this also supported? I even couldn't find any example.



0 Votes 0 ·

You can't make a same grid that host by two different windows, the better practice is make new grid in the second window and pass the parameter from previous window to the new window.

0 Votes 0 ·

Thank you.

0 Votes 0 ·