Ejemplo n.º 1
0
 private static void ScaleChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
 {
     if (obj is StatusView)
     {
         StatusView owner = (StatusView)obj;
         owner.Zoom = (int)((double)args.NewValue * 100.0);
     }
 }
Ejemplo n.º 2
0
 private static void ZoomChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
 {
     if (obj is StatusView)
     {
         StatusView owner = (StatusView)obj;
         owner.Scale = (double.Parse(args.NewValue.ToString())) / 100.0;
     }
 }