コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.This = ((KinectStudioPlugin.Image2DVisualizationViewContent)(target));
                return;

            case 2:

            #line 39 "..\..\..\Image2DVisualizationViewContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Settings_Button_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 44 "..\..\..\Image2DVisualizationViewContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomOut_Button_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.ZoomComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 49 "..\..\..\Image2DVisualizationViewContent.xaml"
                this.ZoomComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:

            #line 59 "..\..\..\Image2DVisualizationViewContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomIn_Button_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 64 "..\..\..\Image2DVisualizationViewContent.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomToFit_Button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ControlHost = ((System.Windows.Controls.Border)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.This = ((KinectStudioPlugin.Image2DVisualizationViewContent)(target));
     return;
     case 2:
     
     #line 39 "..\..\..\Image2DVisualizationViewContent.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Settings_Button_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 44 "..\..\..\Image2DVisualizationViewContent.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomOut_Button_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.ZoomComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 49 "..\..\..\Image2DVisualizationViewContent.xaml"
     this.ZoomComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 59 "..\..\..\Image2DVisualizationViewContent.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomIn_Button_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 64 "..\..\..\Image2DVisualizationViewContent.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomToFit_Button_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.ControlHost = ((System.Windows.Controls.Border)(target));
     return;
     }
     this._contentLoaded = true;
 }