public MainWindow() { InitializeComponent(); this.Topmost = true; this.WindowStyle = System.Windows.WindowStyle.None; this.ResizeMode = System.Windows.ResizeMode.NoResize; this.WindowState = System.Windows.WindowState.Maximized; ScreenWidth = Convert.ToInt32(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Height.ToString()); ScreenHeight = Convert.ToInt32(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Width.ToString()); KinectController.InitializeKinectComponent(); EventHandler <SkeletonFrameReadyEventArgs> s = SkeletonReady; KinectController.ChangeKinectEventHandler(null, null, s, null); _clickHoldingTimer = new Stopwatch(); PageControl.MainThread = this; Main m = new Main(); MainGrid.Width = 1440; MainGrid.Height = 2560; PageControl.registerUserControl(m); MainGrid.Children.Add(m); PageControl.getGrid(Window.GetWindow(this)).Children.Add(Main.MainPageControl); Window WindowObject = Window.GetWindow(this); }
public MainWindow() { InitializeComponent(); KinectController.InitializeKinectComponent(); EventHandler <SkeletonFrameReadyEventArgs> s = SkeletonReady; KinectController.ChangeKinectEventHandler(null, null, s, null); Action <string> gs = GestureAction; KinectController.ChangeGestureEventHandler(gs); }