void MainWindow_Loaded(object sender, RoutedEventArgs e) { var provider = new Windows7TouchInputProvider(); var app = new My_Application(provider); LayoutRoot.Children.Add(app); }
private void InitializeTouchToolkit() { /* Initialize framework */ var inputProvider = new Windows7TouchInputProvider(); GestureFramework.Initialize(inputProvider, LayoutRoot, Assembly.GetExecutingAssembly()); /* Add common visual feedbacks */ GestureFramework.AddTouchFeedback(typeof(BubblesPath)); }
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; }