title: Xamarin Forms Padding in StaticResource
body: <p>I want to build few pages with specific Padding in sytacklayout. I do not want to wrote it in every pages. And its not good design considering if I want to change it in future. Is there a way to define padding in static resource? So that I can define it in one place <code>App.xml</code> and use it in other pages.</p>
  
  <p>I have tried </p>
  
  <pre><code>&lt;ContentPage.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;x:String x:Key="padding"&gt;45, 0, 45, 0&lt;/x:String&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/ContentPage.Resources&gt;
  &lt;StackLayout Padding="{StaticResource padding}"&gt;
      &lt;Label Text="{StaticResource padding}"/&gt;
  &lt;/StackLayout&gt;
  </code></pre>