I set it like code below, but it did not worked.
ProductList.Margin = 10 //Exception
If ProductList is a View you can change its padding and margin like this:
ProductList
View
ProductList.Css.Padding = 10; ProductList.Css.Margin = 20;