A Microsoft platform for building and publishing apps for Windows devices.
Hello,
Welcome to Microsoft Q&A!
However, it shifts the Grid to the right when hiding the Grid.
According to the result I got after testing, the behavior you got is caused by the HorizontalAlignment property of the UserControl object. If I move it, the Grid will not move on the X-axis when the bShow changes to false. I've confirmed it with the sample you provided. It looks like the UserControl's position is recalculated when it is going to begin the hidden animation due to the HorizontalAlignment property.
Like this:
<local:MyUserControl1
x:Name="ucDebug"
VerticalAlignment="Bottom"/>
Thank you.
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.