void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ViewModelRoot = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.SkeletonChooser = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonChooser)(target));
                return;

            case 3:

            #line 117 "..\..\KinectSettings.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetExposure);

            #line default
            #line hidden
                return;

            case 4:

            #line 199 "..\..\KinectSettings.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetColor);

            #line default
            #line hidden
                return;

            case 5:
                this.SliderTrack = ((System.Windows.Controls.Image)(target));
                return;

            case 6:

            #line 259 "..\..\KinectSettings.xaml"
                ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Slider_MouseDown);

            #line default
            #line hidden

            #line 259 "..\..\KinectSettings.xaml"
                ((System.Windows.Controls.Image)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Slider_MouseUp);

            #line default
            #line hidden

            #line 259 "..\..\KinectSettings.xaml"
                ((System.Windows.Controls.Image)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Slider_MouseMove);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ViewModelRoot = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 2:
     this.SkeletonChooser = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonChooser)(target));
     return;
     case 3:
     
     #line 117 "..\..\KinectSettings.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetExposure);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 199 "..\..\KinectSettings.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetColor);
     
     #line default
     #line hidden
     return;
     case 5:
     this.SliderTrack = ((System.Windows.Controls.Image)(target));
     return;
     case 6:
     
     #line 259 "..\..\KinectSettings.xaml"
     ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Slider_MouseDown);
     
     #line default
     #line hidden
     
     #line 259 "..\..\KinectSettings.xaml"
     ((System.Windows.Controls.Image)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Slider_MouseUp);
     
     #line default
     #line hidden
     
     #line 259 "..\..\KinectSettings.xaml"
     ((System.Windows.Controls.Image)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Slider_MouseMove);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }