title: Xamarin.Forms: Color Resource not working on Color Property of Custom Control
body: <p>I have created a custom control having an image and label. I have added a bindable color property to it.</p>
  <pre><code> public static readonly BindableProperty TintColorProperty =
          BindableProperty.Create(&quot;TintColor&quot;, typeof(Color), typeof(Color), Color.Black,
              BindingMode.TwoWay, propertyChanged: OnTintColorChanged);
   public Color TintColor
   {
       get { return (Color)GetValue(TintColorProperty); }
       set { SetValue(ImageSourceProperty, value); }
   }
  </code></pre>
  <p>Below is the property change event.</p>
  <pre><code>private static void OnTintColorChanged(BindableObject bindable, object oldValue, object newValue)
  {
       var control = bindable;
       ImageTint effect = (ImageTint)control.IconPng.Effects.FirstOrDefault(
           e =&gt; e is ImageTint);
       effect.TintColor = (Color)newValue;
  }
  </code></pre>
  <p>When I am passing System Color from xaml, the event is getting invoked. But when I pass Color Resource, it does not!</p>
  <pre><code>TintColor=&quot;{StaticResource ColorPrimary}&quot;
  </code></pre>