Change Margin Programmatically In WPF / C#


Answer :

test.Margin = new Thickness(0, -5, 0, 0); 

Alignment, Margins and Padding Overview (MSDN)
FrameworkElement.Margin (MSDN)


test.Margin = new Thickness(0, 0, 0, 0); 

test.Margin = new Thickness(-5); 

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?