Exemplo n.º 1
0
        async private void AppBarButton_Click(object sender, RoutedEventArgs e)
        {
            ContentDialog1 dialog1 = new ContentDialog1();

            dialog1.Title = "Help";
            await dialog1.ShowAsync();
        }
Exemplo n.º 2
0
        async private void TextBlock_Tapped(object sender, TappedRoutedEventArgs e)
        {
            object dataContext = (e.OriginalSource as FrameworkElement).DataContext;
            string st          = dataContext.ToString();

            switch (st)
            {
            case "video1":
            {
                string str = "mnjbHvYhl-w";
                this.Frame.Navigate(typeof(PageVideo), str);
                break;
            }

            default:
            {
                ContentDialog1 dialog1 = new ContentDialog1
                {
                    PrimaryButtonText = st
                };
                await dialog1.ShowAsync();

                break;
            }
            }
        }
Exemplo n.º 3
0
        async private void TextBlock_Tapped(object sender, TappedRoutedEventArgs e)
        {
            object dataContext = (e.OriginalSource as FrameworkElement).DataContext;
            string str         = dataContext.ToString();

            switch (str)
            {
            case "WhatSize":
            {
                this.Frame.Navigate(typeof(Page0));
                break;
            }

            case "Finger123":
            {
                this.Frame.Navigate(typeof(Page1));
                break;
            }

            case "PointerLog":
            {
                this.Frame.Navigate(typeof(Page2));
                break;
            }

            case "Finger45":
            {
                this.Frame.Navigate(typeof(Page3));
                break;
            }

            case "Whirligig":
            {
                this.Frame.Navigate(typeof(Page4));
                break;
            }

            case "Piano":
            {
                this.Frame.Navigate(typeof(Page5));
                break;
            }

            case "ManipulTracker":
            {
                this.Frame.Navigate(typeof(Page6));
                break;
            }

            case "FlickAndBounce":
            {
                this.Frame.Navigate(typeof(Page7));
                break;
            }

            case "XYSlider":
            {
                this.Frame.Navigate(typeof(Page8));
                break;
            }

            case "CenteredTransforms":
            {
                this.Frame.Navigate(typeof(Page9));
                break;
            }

            case "DialSketch":
            {
                this.Frame.Navigate(typeof(Page10));
                break;
            }

            case "CustomGradient":
            {
                this.Frame.Navigate(typeof(Page11));
                break;
            }

            case "RadialGrBrDemo":
            {
                this.Frame.Navigate(typeof(Page12));
                break;
            }

            case "Posterizer":
            {
                this.Frame.Navigate(typeof(Page13));
                break;
            }

            case "FingerPaint":
            {
                this.Frame.Navigate(typeof(Page14));
                break;
            }

            case "ReversePaint":
            {
                this.Frame.Navigate(typeof(Page15));
                break;
            }

            case "PhotoScatter":
            {
                this.Frame.Navigate(typeof(Page16));
                break;
            }

            case "Camera":
            {
                this.Frame.Navigate(typeof(Page17));
                break;
            }

            case "Orientation":
            {
                this.Frame.Navigate(typeof(Page18));
                break;
            }

            case "BubbleLevel":
            {
                this.Frame.Navigate(typeof(Page19));
                break;
            }

            case "TiltAndRoll":
            {
                this.Frame.Navigate(typeof(Page20));
                break;
            }

            case "TiltAndBounce":
            {
                this.Frame.Navigate(typeof(Page21));
                break;
            }

            case "SimpleCompass":
            {
                this.Frame.Navigate(typeof(Page22));
                break;
            }

            case "YawPitchRoll":
            {
                this.Frame.Navigate(typeof(Page23));
                break;
            }

            case "AxisAngleRotation":
            {
                this.Frame.Navigate(typeof(Page24));
                break;
            }

            case "PageVideoYoutube":
            {
                this.Frame.Navigate(typeof(Page25));
                break;
            }

            case "test26":
            {
                this.Frame.Navigate(typeof(Page26));
                break;
            }

            case "test27":
            {
                this.Frame.Navigate(typeof(Page27));
                break;
            }

            case "test28":
            {
                this.Frame.Navigate(typeof(Page28));
                break;
            }

            default:
            {
                ContentDialog1 dialog1 = new ContentDialog1();
                dialog1.PrimaryButtonText = str;
                await dialog1.ShowAsync();

                break;
            }
            }
        }