Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

BindableProperty in custom control for Color?

$
0
0

Hi folks,

I've got a BindableProperty in my custom control that has properties that successfully cause OnElementPropertyChanged when I change them in a form or code-behind file. But the ones that are of type Color (as below), don't cause the OnElementPropertyChanged to get called for that specific Color property (I'm using Fody.PropertyChanged)...

public static readonly BindableProperty ProgressColorProperty =
    BindableProperty.Create<CoreProgress, Color>(
        p => p.ProgressColor, new Color(1.0,0.0,0.0,1.0));   // red default
public Color ProgressColor
{
    get { return (Color)GetValue(ProgressColorProperty); }
    set { SetValue(ProgressColorProperty, value); }
}

What am I missing?

Thanks!
Mike


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>