示例#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);
     }
 }
示例#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;
     }
 }