title: How to make the BorderThickness receive its value from a WPF resource key?
body: <p>I try to create <code>String</code>, <code>Int32</code> resource as below but it doesn't work. I got the error saying that the value can't be converted.</p>
  
  <p>If you know how to do this please help.</p>
  
  <pre><code>&lt;ResourceDictionary 
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:sys="clr-namespace:System;assembly=mscorlib"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt;
      &lt;sys:Int32 x:Key="MyKey"&gt;1&lt;/sys:Int32&gt;
  &lt;/ResourceDictionary&gt;
  
  &lt;Label Content="abb" BorderThickness="{StaticResource MyKey}" /&gt;
  </code></pre>