示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ucMain = ((WpfEToolkits.ShapeDrawings.ShapeDrawing)(target));

            #line 5 "..\..\..\mycontrol\ShapeDrawing.xaml"
                this.ucMain.Loaded += new System.Windows.RoutedEventHandler(this.ucMain_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.DesignerPane = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.canvasText = ((System.Windows.Controls.Canvas)(target));
                return;

            case 4:
                this.LogoBrush = ((System.Windows.Media.VisualBrush)(target));
                return;

            case 5:
                this.geoText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.GridBrush = ((System.Windows.Media.DrawingBrush)(target));
                return;

            case 7:
                this.DrawingPane = ((System.Windows.Controls.Canvas)(target));
                return;

            case 8:
                this.XAMLPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 9:
                this.tbTemp = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ucMain = ((WpfEToolkits.ShapeDrawings.ShapeDrawing)(target));
     
     #line 5 "..\..\..\mycontrol\ShapeDrawing.xaml"
     this.ucMain.Loaded += new System.Windows.RoutedEventHandler(this.ucMain_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.DesignerPane = ((System.Windows.Controls.Canvas)(target));
     return;
     case 3:
     this.canvasText = ((System.Windows.Controls.Canvas)(target));
     return;
     case 4:
     this.LogoBrush = ((System.Windows.Media.VisualBrush)(target));
     return;
     case 5:
     this.geoText = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.GridBrush = ((System.Windows.Media.DrawingBrush)(target));
     return;
     case 7:
     this.DrawingPane = ((System.Windows.Controls.Canvas)(target));
     return;
     case 8:
     this.XAMLPane = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 9:
     this.tbTemp = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }