protected override void OnElementChanged(VisualElementChangedEventArgs e)
        {
            base.OnElementChanged(e);

            if (Element != null)
            {
                var trestle = Element as TrestleWrapper;
                trestle.WireWebView(this as WKWebView);
                trestle.AddUrlOverride("http://trestle.contacts/getall", () => { return(JsonConvert.SerializeObject(TrestleHelper.GetContacts())); });
            }
        }
        protected override void OnElementChanged(ElementChangedEventArgs <TrestleWrapper> e)
        {
            base.OnElementChanged(e);

            if (Element != null)
            {
                var trestle = Element;
                trestle.WireWebView <Android.Views.ViewGroup>(this);
                trestle.AddUrlOverride("http://trestle.contacts/getall", () => { return(JsonConvert.SerializeObject(TrestleHelper.GetContacts())); });
            }
        }
Beispiel #3
0
        protected override void OnElementChanged(ElementChangedEventArgs <WebView> e)
        {
            base.OnElementChanged(e);

            if (Element != null && Control != null)
            {
                var trestle = (TrestleWebView)Element;
                trestle.WireWebView(Control as Android.Webkit.WebView);
                trestle.AddUrlOverride("http://trestle.contacts/getall", () => { return(JsonConvert.SerializeObject(TrestleHelper.GetContacts())); });
            }
        }