public TutorialPage() { InitializeComponent(); new FontButton(this); if (JBCPage.GetTutorialBool()) { NavigationPage.SetHasBackButton(this, false); Thanks.IsVisible = true; Dismiss.IsVisible = true; DismissBtn.IsVisible = true; Tabs.IsVisible = true; } else if (!JBCPage.GetTutorialBool()) { NavigationPage.SetHasBackButton(this, true); Thanks.IsVisible = false; Dismiss.IsVisible = false; DismissBtn.IsVisible = false; Tabs.IsVisible = false; } SetSizes(); MessagingCenter.Subscribe <Application>(this, "Hi", (sender) => SetSizes()); //FontImage.Source = ImageSource.FromResource("JBC.Images..jpg"); FontImage.Source = ImageSource.FromFile("fontSize.png"); //FontImage.WidthRequest = 50; TapGestureRecognizer tapEvent = new TapGestureRecognizer(); tapEvent.Tapped += Font_Clicked; FontImage.GestureRecognizers.Add(tapEvent); //TabsImage.Source = Device.RuntimePlatform == Device.Android ? ImageSource.FromFile("DroidTabs.png") : ImageSource.FromFile("iOSTabs.png"); Thanks.Text = "\nThank you for downloading the Jerusalem Baptist Church Member Companion App!\n"; Tabs.Text = "Upon the dismissal of this tutorial you will see tabs located at the top or bottom of the app. These tabs will bring you between " + "the four main sections of the app detailed below: \n"; Home.Text = "The Home tab takes you to the main hub where you can access the About Us page " + "and the Location as well as the church website and facebook page."; Notes.Text = "The Notes tab allows you to view sermon notes."; News.Text = "The News tab will have recent announcements from your Pastor."; Videos.Text = "The Videos tab will allow you to watch videos of previous sermons."; FontChange.Text = "Located at the top-right of the app is a button that allows you to change the font size for easier viewing depending on your device.\n"; Dismiss.Text = "Tap the dismiss button when you are ready to continue into the app."; }
void Handle_Clicked(object sender, System.EventArgs e) { Navigation.PopAsync(); JBCPage.SetTutorialBool(false); }