Click here to Skip to main content
16,017,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set the button position in WPF using c#
Posted

a simple way is following
button1.Margin = new Thickness(50, 50, 0, 0);

or find modify in XAML :
<Button Margin="50,50,0,0" ....
 
Share this answer
 
v2
It depends on what is containing the button, see this link for some information
How to position a wpf button
 
Share this answer
 

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