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; }
private static void OnMaxValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SizableControl control = (SizableControl)d; control.NotifyPropertyChanged("MaxValue"); }
private static void OnStartingAngleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SizableControl control = (SizableControl)d; control.NotifyPropertyChanged("StartingAngle"); }