public LinkedInLoginPage(LinkedInConnection connection)//string key, string secret, string scope, string redirectURL)
        {
            this.Title = "LinkedInLoginPage";

            this._Connection = connection;
            this._Browser = new WebView();

           // LinkedInConnection connection = new LinkedInConnection(key, secret, scope, redirectURL);
            this._Connection.SignIn(this._Browser);
            Label lbl = new Label() { Text = "Connecting..." };
            lbl.SetBinding(Label.IsVisibleProperty, "IsVisible", BindingMode.OneWay, new BooleanInverterConverter());
            lbl.BindingContext = this._Browser;

            this._BaseLayout = new StackLayout()
            {
                Orientation = StackOrientation.Vertical,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                VerticalOptions = LayoutOptions.FillAndExpand,
            };

            this._BaseLayout.Children.Add(lbl);
            this._BaseLayout.Children.Add(this._Browser);

            this._Browser.IsVisible = false;


            Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0);  // Accomodate iPhone status bar.
            Content = this._BaseLayout;

        }
        public LinkedInLoginPage(LinkedInConnection connection)//string key, string secret, string scope, string redirectURL)
        {
            this.Title = "LinkedInLoginPage";

            this._Connection = connection;
            this._Browser    = new WebView();

            // LinkedInConnection connection = new LinkedInConnection(key, secret, scope, redirectURL);
            this._Connection.SignIn(this._Browser);
            Label lbl = new Label()
            {
                Text = "Connecting..."
            };

            lbl.SetBinding(Label.IsVisibleProperty, "IsVisible", BindingMode.OneWay, new BooleanInverterConverter());
            lbl.BindingContext = this._Browser;

            this._BaseLayout = new StackLayout()
            {
                Orientation       = StackOrientation.Vertical,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                VerticalOptions   = LayoutOptions.FillAndExpand,
            };

            this._BaseLayout.Children.Add(lbl);
            this._BaseLayout.Children.Add(this._Browser);

            this._Browser.IsVisible = false;


            Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0);  // Accomodate iPhone status bar.
            Content = this._BaseLayout;
        }