--- a/src/FingersDance.ViewModel/AnnotationViewModel.cs Wed Oct 21 16:28:49 2009 +0200
+++ b/src/FingersDance.ViewModel/AnnotationViewModel.cs Thu Oct 22 14:48:43 2009 +0200
@@ -16,7 +16,18 @@
private Color _color;
private float _marginLeft;
+ private Double _scaleX = 1;
+ public AnnotationViewModel(Annotation a, float marginLeft, Double scaleX)
+ {
+ this._tcBegin = a.TcBegin;
+ this._dur = a.Dur;
+ this._gestureType = a.GestureType;
+ this._color = a.Color;
+ this._marginLeft = marginLeft;
+ this._marginLeft = marginLeft;
+ this._scaleX = scaleX;
+ }
public AnnotationViewModel(Annotation a, float marginLeft)
{
this._tcBegin = a.TcBegin;
@@ -80,6 +91,17 @@
base.OnPropertyChanged("MarginLeft");
}
}
+ public Double ScaleX
+ {
+ get { return _scaleX; }
+ set
+ {
+ if (value == _scaleX || Double.IsNaN(value))
+ return;
+ _scaleX = value;
+ base.OnPropertyChanged("ScaleX");
+ }
+ }
}
}