Esempio n. 1
0
        protected override void OnBindingContextChanged()
        {
            base.OnBindingContextChanged();

            WebViewSource source = Source;

            if (source != null)
            {
                SetInheritedBindingContext(source, BindingContext);
            }
        }
Esempio n. 2
0
        protected override void OnPropertyChanged(string propertyName)
        {
            if (propertyName == "BindingContext")
            {
                WebViewSource source = Source;
                if (source != null)
                {
                    SetInheritedBindingContext(source, BindingContext);
                }
            }

            base.OnPropertyChanged(propertyName);
        }
Esempio n. 3
0
 protected WebNavigationEventArgs(WebNavigationEvent navigationEvent, WebViewSource source, string url)
 {
     NavigationEvent = navigationEvent;
     Source          = source;
     Url             = url;
 }
Esempio n. 4
0
		static Uri GetSourceUrl (WebViewSource source)
		{
			Debug.Assert (source != null, "source cannot be null.");

			var urlWebViewSource = source as UrlWebViewSource;
			if (urlWebViewSource != null) {
				if (urlWebViewSource.Url.IsValidAbsoluteUrl ()) {
					return new Uri (urlWebViewSource.Url);
				}
			}

			throw new InvalidOperationException ("WebViewSource is Invalid. Only UrlWebViewSource is accepted.");
		}
		protected WebNavigationEventArgs(WebNavigationEvent navigationEvent, WebViewSource source, string url)
		{
			NavigationEvent = navigationEvent;
			Source = source;
			Url = url;
		}