示例#1
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var provider = new Windows7TouchInputProvider();

            var app = new My_Application(provider);
            LayoutRoot.Children.Add(app);
        }
示例#2
0
        private void InitializeTouchToolkit()
        {
            /* Initialize framework */
            var inputProvider = new Windows7TouchInputProvider();
            GestureFramework.Initialize(inputProvider, LayoutRoot, Assembly.GetExecutingAssembly());

            /* Add common visual feedbacks */
            GestureFramework.AddTouchFeedback(typeof(BubblesPath));
        }
示例#3
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            // Initialize Gesture Framework
            var provider = new Windows7TouchInputProvider();
            TestControl testControl = new TestControl(provider);
            LayoutRoot.Children.Add(testControl);

            testControl.LayoutRoot.Width = System.Windows.SystemParameters.PrimaryScreenWidth;
            testControl.LayoutRoot.Height = System.Windows.SystemParameters.PrimaryScreenHeight+ 200;

            testControl.LayoutGrid.Width = System.Windows.SystemParameters.PrimaryScreenWidth;
            testControl.LayoutGrid.Height = System.Windows.SystemParameters.PrimaryScreenHeight;
        }