This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <local:BaseQuickTourPage | |
| xmlns:local="clr-namespace:QuickTourXFSample.Views.QuickTourSteps" | |
| xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| xmlns:Controls="clr-namespace:QuickTourXFSample.Controls" | |
| x:Class="QuickTourXFSample.Views.QuickTourSteps.QuickTourStep2PopUp" > | |
| <StackLayout> | |
| <Controls:AnimatedView> | |
| <Button Text="Add" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public partial class HomePage : FlyoutPage | |
| { | |
| public ICommand ShowQuickTourCommand { get; } | |
| public HomePage() | |
| { | |
| InitializeComponent(); | |
| var quickTourLauncher = QuickTourBuilder<QuickTourStep1PopUp> | |
| .Initialize() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public partial class QuickTourStep1PopUp : BaseQuickTourPage, IQuickTourLauncher | |
| { | |
| public QuickTourStep1PopUp(): base() => InitializeComponent(); | |
| public Task LaunchAsync() => PopupNavigation.Instance.PushAsync(this, false); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <local:BaseQuickTourPage | |
| xmlns:local="clr-namespace:QuickTourXFSample.Views.QuickTourSteps" | |
| xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| xmlns:Controls="clr-namespace:QuickTourXFSample.Controls" | |
| x:Class="QuickTourXFSample.Views.QuickTourSteps.QuickTourStep1PopUp" > | |
| <Controls:AnimatedView VerticalOptions="CenterAndExpand"> | |
| <Frame Padding="20" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class QuickTourBuilder<T> | |
| where T : BaseQuickTourPage, IQuickTourLauncher, new() | |
| { | |
| public static QuickTourBuilder<T> Initialize() | |
| => new QuickTourBuilder<T>(new T()); | |
| public QuickTourBuilder<T> Next(BaseQuickTourPage page) | |
| { | |
| _pages.Last().NextPage = page; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IQuickTourLauncher | |
| { | |
| Task LaunchAsync(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <FlyoutPage xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="QuickTourXFSample.Views.HomePage"> | |
| <FlyoutPage.Flyout> | |
| <ContentPage Title="Menu"/> | |
| </FlyoutPage.Flyout> | |
| <FlyoutPage.Detail> | |
| <NavigationPage> | |
| <x:Arguments> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AnimatedView : ContentView | |
| { | |
| public AnimatedView() | |
| { | |
| Device.StartTimer(TimeSpan.FromSeconds(1.5), () => | |
| { | |
| this.ScaleTo(0.95, 900, Easing.CubicInOut).ContinueWith((x) => | |
| { | |
| this.ScaleTo(1, 900, Easing.CubicInOut); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract partial class BaseQuickTourPage : PopupPage | |
| { | |
| public BaseQuickTourPage() | |
| { | |
| InitializeComponent(); | |
| NextCommand = new Command<BaseQuickTourPage>(async (page) => await Next(page)); | |
| SkipCommand = new Command(async () => await Skip()); | |
| } | |
| public static readonly BindableProperty ActualStepProperty = BindableProperty.Create(nameof(ActualStep), typeof(int), typeof(BaseQuickTourPage)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <rg:PopupPage | |
| xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="QuickTourXFSample.Views.QuickTourSteps.BaseQuickTourPage" | |
| xmlns:rg="http://rotorgames.com" | |
| BackgroundColor="#D6072F40" | |
| HasSystemPadding="True" | |
| CloseWhenBackgroundIsClicked="False"> | |
| <rg:PopupPage.ControlTemplate> |