/// <summary> /// Open the welcome page /// </summary> private void Open_Clicked(object sender, EventArgs e) { var welcomePage = new AnimatedSimpleAppIntro(GetAnimatedSlides()) { // Properties ShowPositionIndicator = true, ShowSkipButton = true, ShowNextButton = true, DoneText = "Finish", NextText = "Next", SkipText = "Skip", // Theming BarColor = "#607D8B", SkipButtonBackgroundColor = "#FF9700", DoneButtonBackgroundColor = "#8AC149", NextButtonBackgroundColor = "#8AC149", // Use images instead of buttons DoneButtonImage = "baseline_done_white_24.png", // Callbacks OnSkipButtonClicked = OnSkipButtonClicked, OnDoneButtonClicked = OnDoneButtonClicked, OnPositionChanged = OnPositionChanged, // Vibrate // NOTE: you will probably need to ask VIBRATE permission in Manifest. Vibrate = true, VibrateDuration = 0.2, }; Navigation.PushModalAsync(welcomePage); }
/// <summary> /// Open the welcome page /// </summary> private void Open_Clicked(object sender, EventArgs e) { var welcomePage = new AnimatedSimpleAppIntro(new List <object>() { new Slide(new SlideConfig("Welcome", "This is a sample app showing off the new App Intro", "world.json", null, "#FFFFFF", "#FFFFFF", FontAttributes.Bold, FontAttributes.Italic, 24, 16)), new ButtonSlide(new ButtonSlideConfig("Slides", "You can add slides and have a clean app intro", "twitter_heart.json", null, "Click here", null, "#FFFFFF", new Command(() => OnButtonClicked()), "#FFFFFF", "#FFFFFF", FontAttributes.Bold, FontAttributes.Italic, 24, 16)), new CheckboxSlide(new CheckboxSlideConfig("Checkbox", "Let your user set specific settings via a AppIntro screen.", "twitter_heart.json", null, true, new Command <bool>((value) => OnCheckboxClicked(value)), "#FFFFFF", "#FFFFFF", FontAttributes.Bold, FontAttributes.Italic, 24, 16)), new SwitchSlide(new SwitchSlideConfig("Other", "Tell your user what they can do with your app", "send_message_done.json", null, true, new Command <bool>((value) => OnSwitchClicked(value)), "#FFFFFF", "#FFFFFF", FontAttributes.Bold, FontAttributes.Italic, 24, 16)), }) { // Properties ShowPositionIndicator = true, ShowSkipButton = true, ShowNextButton = true, DoneText = "Finish", NextText = "Next", SkipText = "Skip", // Theming BarColor = "#607D8B", SkipButtonBackgroundColor = "#FF9700", DoneButtonBackgroundColor = "#8AC149", NextButtonBackgroundColor = "#8AC149", // Use images instead of buttons DoneButtonImage = "baseline_done_white_24.png", // Callbacks OnSkipButtonClicked = OnSkipButtonClicked, OnDoneButtonClicked = OnDoneButtonClicked, OnPositionChanged = OnPositionChanged, // Vibrate // NOTE: you will probably need to ask VIBRATE permission in Manifest. Vibrate = true, VibrateDuration = 0.2, }; Navigation.PushModalAsync(welcomePage); }