private static void OnValueChanged(DependencyObject d,
                                           DependencyPropertyChangedEventArgs e)
        {
            OnOffUserControl uc = (OnOffUserControl)d;

            uc.text((bool)e.NewValue);
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((OnOffSwitch.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.OnOffUserControl = ((OnOffSwitch.OnOffUserControl)(target));
                return;
            }
            this._contentLoaded = true;
        }