Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.LinearGauge = ((LinearGauge.UserControlLinearGauge)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private static void OnMaxValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UserControlLinearGauge uc = (UserControlLinearGauge)d;

            uc.MaxValue = (int)e.NewValue;
        }