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

            case 2:
                this.ColorBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.popup = ((System.Windows.Controls.Primitives.Popup)(target));

            #line 70 "..\..\..\..\Views\PopUp_ColorComb\ColorPickerView2.xaml"
                this.popup.Closed += new System.EventHandler(this.popup_Closed);

            #line default
            #line hidden
                return;

            case 4:
                this.colorComb = ((WPFColorPicker.PopUp2)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        private void popup_Closed(object sender, EventArgs e)
        {
            PopUp2 p = sender as PopUp2;

            if (p != null)
            {
                CurrentColor = p.CurrentColor_Comb;
            }
        }