[UWP] How to make SwapChainPanel change as the window size changes.

Aloento 81 Reputation points

Now I have a UWP App and it has a Grid.
On the Grid, for example, have two StackPane. Left and Right.
SwapChainPanel is on the StackPane on the right.

Now I resize the window, SwapChainPanel does not change with the change of the window, leaing to incomplete display of the content.

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. AryaDing-MSFT 2,916 Reputation points


    Welcome to Microsoft Q&A!

    Derive from official document, content that's rendered via the swap chain is not stretched when it's resized by the user. Instead, the resizing behavior is similar to setting Stretch="None" on an Image element.

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful