Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm studying XAML from basic with MS documents, it says alter margin numbers to move control. Is it only way to move control? I want to drag it to position I want.

What I have tried:

<Canvas Height="200" Width="300" RenderTransformOrigin="0.717,0.524" Margin="500,500,0,0">
            <Button Canvas.Left ="50">Hello</Button>
</Canvas>
Posted
Updated 1-May-20 20:27pm

1 solution

Quote:
Snaplines help you align controls relative to each other. If snapping to snaplines is enabled, when you drag a control relative to other controls, alignment boundaries appear
XAML Designer overview - Visual Studio | Microsoft Docs[^]

Also see: Organize objects into layout containers in XAML Designer - Visual Studio | Microsoft Docs[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900