Example #1
0
        private static void OnFlippedVerticallyPropertyChange(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            bool         flipped = (bool)e.NewValue;
            KinectViewer viewer  = (KinectViewer)d;

            viewer.SetValue(RenderTransformProperty, viewer.FlipTransform);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\MainWindow.xaml"
                ((WpfApp1.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.kinectViewer = ((WpfApp1.KinectViewer)(target));
                return;

            case 3:
                this.myWeb = ((CefSharp.Wpf.ChromiumWebBrowser)(target));

            #line 37 "..\..\..\MainWindow.xaml"
                this.myWeb.Loaded += new System.Windows.RoutedEventHandler(this.ChromiumWebBrowser_Loaded);

            #line default
            #line hidden
                return;

            case 4:
                this.reset = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\..\MainWindow.xaml"
                this.reset.Click += new System.Windows.RoutedEventHandler(this.reset_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.save = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\..\MainWindow.xaml"
                this.save.Click += new System.Windows.RoutedEventHandler(this.save_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.slider = ((System.Windows.Controls.Slider)(target));
                return;

            case 7:
                this.btnSlide = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\..\MainWindow.xaml"
                this.btnSlide.Click += new System.Windows.RoutedEventHandler(this.btnSlide_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Yes = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.No = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.titre = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.listeGestes = ((System.Windows.Controls.ListBox)(target));
                return;

            case 12:
                this.titre2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.listeGestes2 = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }