How to fix margins in silverlight

by Steve French in How To Fix, Silverlight on October 25, 2009

The Problem: You try to set margins the same way in xaml as in xhtml/css.

The Cause:
The margin property in xaml is different than the margin in xhtml/css

The Solution:
Use this bit of info: the margins in xaml go left,top,right,bottom, or clockwise from 9:00.

This was hardly the most significant problem I had with the new app, but it did take me a little while to figure out, so I thought I would blog it in case someone else had the same problem.

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog