private static void OnIsBrownBkgrdChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            MLStackPanel msp = source as MLStackPanel;

            if (msp.IsBrownBkgrd == true)
            {
                msp.Background = System.Windows.Media.Brushes.BurlyWood;
            }
            else
            {
                msp.Background = System.Windows.Media.Brushes.LightGray;
            }
        }
        private static object CoerceIsBrownBkgrdChanged(DependencyObject d, object baseValue)
        {
            MLStackPanel m = d as MLStackPanel;

            if (m.IsBrownBkgrd == false)
            {
                MessageBox.Show("The IsBrownBkgrd depdendency property is being changed to true");
                return(true);
            }
            else
            {
                MessageBox.Show("The IsBrownBkgrd depdendency property is being changed to false");
                return(false);
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mlStack = ((CustomDependencyProperty.MLStackPanel)(target));
                return;

            case 2:
                this.chkBkgColor = ((System.Windows.Controls.CheckBox)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.chkBkgColor.Click += new System.Windows.RoutedEventHandler(this.bkgColor_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }