Q:

Xamarin BindableProperty doesn`t call setter

I have problem with Uri property in my custom component
My custom WebView component:
public class PdfWebView : WebView
{ 
    public static readonly BindableProperty UriProperty = BindableProperty.Create(nameof(Uri), typeof(string), typeof(PdfWebView), default(string), propertyChanged: OnUriPropertyChanged);

    private static void OnUriPropertyChanged(BindableObject bindable, object oldValue, object newValue)
    {
        if(oldValue != newValue)
        {

        }
    }

    public string Uri
    {
        get { return (string)GetValue(UriProperty); }
        set { SetValue(UriProperty, value); } // need call but it`s doesnt work
    }
}

XAML:
<controls:PdfWebView
            x:Name="PdfView"
            Uri="{Binding Uri}"
            IsVisible="{Binding IsLoaderVisible, Converter={StaticResource BoolReverseConverter}}"
            Margin="0"
            HorizontalOptions="FillAndExpand"
            VerticalOptions="FillAndExpand"
            Navigated="WebView_Navigated"/>

Renderer:
[assembly: ExportRenderer(typeof(PdfWebView), typeof(PdfWebViewRenderer))]
namespace Contrinex.Droid.Renderers
{
    public class PdfWebViewRenderer : WebViewRenderer
    {
        public PdfWebViewRenderer(Context context) : base(context)
        {
        }

        protected override void OnElementChanged(ElementChangedEventArgs<WebView> e)
        {
            base.OnElementChanged(e);

            if (e.NewElement != null)
            {
                Control.Settings.JavaScriptEnabled = true;
                Control.Settings.AllowFileAccess = true;
                Control.Settings.AllowFileAccessFromFileURLs = true;
                Control.Settings.AllowUniversalAccessFromFileURLs = true;
            }
        }

        protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            base.OnElementPropertyChanged(sender, e);
            if (e.PropertyName == PdfWebView.UriProperty.PropertyName)
            {
                var docView = Element as PdfWebView;
                Control.LoadUrl($"file:///android_asset/pdfjs/web/viewer.html?file={($"file:///{docView.Uri.Trim('/')}")}");
            }
        }
    }
}

Value in Uri property was changed but setter doest`t call

A:

According to your description, you mean that you change Uri property, but BindableProperty  UriProperty in PdfWebview don't change.
If yes, please add OnElementPropertyChanged method in Rebder, like this:
 protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
    {
        base.OnElementPropertyChanged(sender, e);
        PdfWebView pdfWebView = sender as PdfWebView;
        if (e.PropertyName == "Uri")
        {
            Control.LoadUrl(string.Format("file:///android_asset/pdfjs/web/viewer.html?file={0}", string.Format("file:///android_asset/Content/{0}", WebUtility.UrlEncode(pdfWebView.Uri))));
        }
    }

The full code about webview render:
public  class PdfWebViewRenderer: WebViewRenderer
{
    public PdfWebViewRenderer(Context context) : base(context)
    {

    }

    protected override void OnElementChanged(ElementChangedEventArgs<WebView> e)
    {
        base.OnElementChanged(e);

        if (e.NewElement != null)

        {

            var pdfView = Element as PdfWebView;

            Control.Settings.AllowUniversalAccessFromFileURLs = true;

            Control.LoadUrl(string.Format("file:///android_asset/pdfjs/web/viewer.html?file={0}", string.Format("file:///android_asset/Content/{0}", WebUtility.UrlEncode(pdfView.Uri))));

        }
    }

    protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
    {
        base.OnElementPropertyChanged(sender, e);
        PdfWebView pdfWebView = sender as PdfWebView;
        if (e.PropertyName == "Uri")
        {
            Control.LoadUrl(string.Format("file:///android_asset/pdfjs/web/viewer.html?file={0}", string.Format("file:///android_asset/Content/{0}", WebUtility.UrlEncode(pdfWebView.Uri))));
        }
    }
}

The screenshot:

