Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PART_ColorSelector = ((Imagin.Common.Media.Controls.ColorSelector)(target));
                return;

            case 2:
                this.PART_ColorPlane = ((Imagin.Common.Media.Controls.ColorPlane)(target));
                return;

            case 3:
                this.PART_AlphaSlider = ((Imagin.Common.Media.Controls.AlphaSlider)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PART_ColorPlane = ((Imagin.Common.Media.Controls.ColorPlane)(target));
                return;

            case 2:
                this.PART_Image = ((System.Windows.Controls.Image)(target));

            #line 28 "..\..\..\..\..\..\Media\Controls\ColorPicker\.ColorSelector\ColorPlane.xaml"
                this.PART_Image.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseDown);

            #line default
            #line hidden

            #line 29 "..\..\..\..\..\..\Media\Controls\ColorPicker\.ColorSelector\ColorPlane.xaml"
                this.PART_Image.MouseMove += new System.Windows.Input.MouseEventHandler(this.OnMouseMove);

            #line default
            #line hidden

            #line 30 "..\..\..\..\..\..\Media\Controls\ColorPicker\.ColorSelector\ColorPlane.xaml"
                this.PART_Image.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseUp);

            #line default
            #line hidden
                return;

            case 3:
                this.PART_SelectionA = ((Imagin.Common.Media.Controls.ColorSelection)(target));
                return;

            case 4:
                this.PART_SelectionB = ((Imagin.Common.Media.Controls.ColorSelection)(target));
                return;
            }
            this._contentLoaded = true;
        }