private static void AngleChanged(DependencyObject depObj, DependencyPropertyChangedEventArgs args) { ContinuouslyRotating image = (ContinuouslyRotating)depObj; image.RotateControl.Angle = Convert.ToDouble(args.NewValue); }
private static void OnRequestRotateCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ContinuouslyRotating o = d as ContinuouslyRotating; o.TestRequestRotateCommand(e.NewValue as ICommand); }