コード例 #1
0
        public IntroPage5()
        {
            InitializeComponent();

            if (Device.RuntimePlatform == Device.Android)
            {
                header.IsVisible = false;
            }

            this.BindingContext = new IntroPage5ViewModel(GetVideoView());

            NextButton.GestureRecognizers.Add(new TapGestureRecognizer
            {
                Command = new Command(() =>
                {
                    VideoView.Stop();
                    IntroCarousel.NavigateToMainMenu();
                }),
            });
            SkipIntroText.GestureRecognizers.Add(new TapGestureRecognizer
            {
                Command = new Command(() =>
                {
                    VideoView.Stop();
                    IntroCarousel.NavigateToMainMenu();
                }),
            });

            //System.Diagnostics.Debug.WriteLine("Source: " + "android.resource://" + _Source);
        }
コード例 #2
0
ファイル: IntroPage1.xaml.cs プロジェクト: Viktor-Manev/src
        public IntroPage1()
        {
            InitializeComponent();

            if (Device.RuntimePlatform == Device.Android)
            {
                header.IsVisible = false;
            }

            SkipIntroText.GestureRecognizers.Add(new TapGestureRecognizer
            {
                Command = new Command(() => IntroCarousel.NavigateToMainMenu()),
            });
        }