Inheritance: StereoControl
示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.thisControl = ((HelixToolkit.Wpf.AnaglyphView3D)(target));
                return;

            case 2:
                this.LeftPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.LeftView = ((System.Windows.Controls.Viewport3D)(target));
                return;

            case 4:
                this.RightPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.AnaglyphEffect1 = ((HelixToolkit.Wpf.AnaglyphEffect)(target));
                return;

            case 6:
                this.RightView = ((System.Windows.Controls.Viewport3D)(target));
                return;

            case 7:
                this.CameraControl = ((HelixToolkit.Wpf.CameraController)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.thisWindow = ((SurfaceDemo.Window1)(target));
                return;

            case 2:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:

            #line 19 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 20 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportStereo_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 22 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.ViewSource = ((System.Windows.Controls.MenuItem)(target));

            #line 25 "..\..\Window1.xaml"
                this.ViewSource.Click += new System.Windows.RoutedEventHandler(this.ViewSource_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 26 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetCamera_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Fullscreen = ((System.Windows.Controls.MenuItem)(target));

            #line 27 "..\..\Window1.xaml"
                this.Fullscreen.Click += new System.Windows.RoutedEventHandler(this.FullScreen_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 29 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 30 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 31 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 34 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHue_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 35 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHueStripes_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 36 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbow_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 37 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbowStripes_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 38 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushPattern_Click);

            #line default
            #line hidden
                return;

            case 17:

            #line 39 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushImage_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.surfacesMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 19:
                this.SourcePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 20:
                this.slider1 = ((System.Windows.Controls.Slider)(target));
                return;

            case 21:
                this.slider2 = ((System.Windows.Controls.Slider)(target));
                return;

            case 22:
                this.slider3 = ((System.Windows.Controls.Slider)(target));
                return;

            case 23:
                this.slider4 = ((System.Windows.Controls.Slider)(target));
                return;

            case 24:
                this.errorList = ((System.Windows.Controls.ListView)(target));
                return;

            case 25:
                this.source1 = ((System.Windows.Controls.TextBox)(target));

            #line 86 "..\..\Window1.xaml"
                this.source1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.source1_TextChanged);

            #line default
            #line hidden
                return;

            case 26:
                this.view1 = ((HelixToolkit.Wpf.HelixViewport3D)(target));
                return;

            case 27:
                this.surface1 = ((SurfaceDemo.DynamicCodeSurface3D)(target));
                return;

            case 28:
                this.view2 = ((HelixToolkit.Wpf.StereoView3D)(target));
                return;

            case 29:
                this.view3 = ((HelixToolkit.Wpf.AnaglyphView3D)(target));
                return;
            }
            this._contentLoaded = true;
        }