title: How can I set Margin in Code-behind for MonoDroid?
body: <p>this question is simple, but i'm not finding nothing about it. How can i set margin into a widget in code-behind.</p>
  
  <p>I found this document into <a href="http://androidapi.xamarin.com/?link=M%3aAndroid.Views.ViewGroup%2bMarginLayoutParams.SetMargins%28System.Int32,System.Int32,System.Int32,System.Int32%29" rel="nofollow">Xamarin's site</a>, but i can't use this into a ImageView</p>
  
  <p>I also tried the method Layout() in my ImageView, but it didn't work.</p>
  
  <pre><code>        ImageView imgView = FindViewById&lt;ImageView&gt;(Resource.Id.imageView);
          imgView.Layout(10, 10, 10, 10);
  </code></pre>