897 questions
Hello @mc ,
Welcome to Microsoft Q&A!
Your original code canvas actually runs with a Height and Width of Zero.
You can try to test with the following code.
<StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
<Canvas Background="Black" Height="500" Width="600" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Tapped="Canvas_Tapped" >
</Canvas>
</StackPanel>
Thank you
Junjie
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.