Silverlight – C# – How to set XAML element’s margin from code behind

XAMLelementName.Margin = new Thickness(1, 2, 3, 4);
// OR, if you need uniform thickness
XAMLelementName.Margin = new Thickness(5);
This entry was posted in C#, Knowledge Sharing, Silverlight, Troubleshooting. Bookmark the permalink.

3 Responses to Silverlight – C# – How to set XAML element’s margin from code behind

  1. Thanks for this post. I don’t know a large number of links to forums but my friends seem to be able to spend a lot of time on them that’s for sure.

  2. LukeSolis says:

    IĆ¢??ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.

  3. Thank you for another wonderful post. The place else may just anybody get that type of info in such an ideal method of writing? I’ve a presentation subsequent week, and I am at the look for such info.

Leave a Reply