Esempio n. 1
0
        private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SizableControl control = (SizableControl)d;

            control.Value = (double)e.NewValue;
            Console.WriteLine(control.Value);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.sizableControl = ((UCResizeDemo1.SizableControl)(target));
                return;

            case 3:
                this.slider = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 3
0
        private static void OnMaxValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SizableControl control = (SizableControl)d;

            control.NotifyPropertyChanged("MaxValue");
        }
Esempio n. 4
0
        private static void OnStartingAngleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SizableControl control = (SizableControl)d;

            control.NotifyPropertyChanged("StartingAngle");
        }