public PartsOfSpeechPage (RogetCategory cat)
		{
			NavigationPage.SetHasNavigationBar (this, true);

			web = new WebView {
				WidthRequest = 400,
				HeightRequest = 800
			}; // want this to just always go full-screen...

			var htmlSource = new HtmlWebViewSource ();
			htmlSource.Html = FormatText(cat.PartsOfSpeech);
			web.Source = htmlSource;

			// test PopToRootAsync bugfix in 1.2.2-pre2
			var b = new Button { Text = "Main Menu" };
			b.Clicked += async (sender, e) => {
				await Navigation.PopToRootAsync();
			};

			Content = new StackLayout {
				VerticalOptions = LayoutOptions.StartAndExpand,
				Children = {b, web}
			};

		}
Example #2
0
        public PartsOfSpeechPage(RogetCategory cat)
        {
            NavigationPage.SetHasNavigationBar(this, true);

            web = new WebView {
                WidthRequest  = 400,
                HeightRequest = 800
            };             // want this to just always go full-screen...

            var htmlSource = new HtmlWebViewSource();

            htmlSource.Html = FormatText(cat.PartsOfSpeech);
            web.Source      = htmlSource;

            // test PopToRootAsync bugfix in 1.2.2-pre2
            var b = new Button {
                Text = "Main Menu"
            };

            b.Clicked += async(sender, e) => {
                await Navigation.PopToRootAsync();
            };

            Content = new StackLayout {
                VerticalOptions = LayoutOptions.StartAndExpand,
                Children        = { b, web }
            };
        }
		public PartsOfSpeechPage (RogetCategory cat)
		{
			NavigationPage.SetHasNavigationBar (this, true);

			var web = new WebView {
				WidthRequest = 400,
				HeightRequest = 800
			}; // want this to just always go full-screen...

			var htmlSource = new HtmlWebViewSource ();
			htmlSource.Html = FormatText(cat.PartsOfSpeech);
			web.Source = htmlSource;

			Content = new StackLayout {
				VerticalOptions = LayoutOptions.StartAndExpand,
				Children = {web}
			};

		}
Example #4
0
        public PartsOfSpeechPage(RogetCategory cat)
        {
            NavigationPage.SetHasNavigationBar(this, true);

            var web = new WebView {
                WidthRequest  = 400,
                HeightRequest = 800
            };             // want this to just always go full-screen...

            var htmlSource = new HtmlWebViewSource();

            htmlSource.Html = FormatText(cat.PartsOfSpeech);
            web.Source      = htmlSource;

            Content = new StackLayout {
                VerticalOptions = LayoutOptions.StartAndExpand,
                Children        = { web }
            };
        }