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

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 77050

Trending Articles



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