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

My BindableProperty on custom control is called twice every time in my customer renderer

$
0
0

Hi folks,

I have a BindableProperty in a custom control like so:

public static readonly BindableProperty ShowIndeterminateProperty =
    BindableProperty.Create<CoreProgress, bool>(
        p => p.ShowIndeterminate, false);
public bool ShowIndeterminate
{
    get { return (bool)GetValue(ShowIndeterminateProperty); }
    set { SetValue(ShowIndeterminateProperty, value); }
}

In my Android exported renderer for this control, my OnElementPropertyChanged gets called twice for this property change. Any idea why?

Thanks a lot,
Mike


Viewing all articles
Browse latest Browse all 91519

Trending Articles