diff -r 3d66ca73df55 -r 9f157d9c725b src/FingersDance.ViewModel/AnnotationViewModel.cs --- a/src/FingersDance.ViewModel/AnnotationViewModel.cs Tue Oct 13 19:09:46 2009 +0200 +++ b/src/FingersDance.ViewModel/AnnotationViewModel.cs Tue Oct 13 19:33:13 2009 +0200 @@ -13,10 +13,13 @@ private float _dur; private String _gestureType; - public AnnotationViewModel(Annotation a) { + private float _marginLeft; + + public AnnotationViewModel(Annotation a, float marginLeft) { this._tcBegin = a.TcBegin; this._dur = a.Dur; this._gestureType = a.GestureType; + this._marginLeft = marginLeft; } public float TcBegin @@ -51,6 +54,17 @@ base.OnPropertyChanged("GestureType"); } } + public float MarginLeft + { + get { return _marginLeft; } + set + { + if (value == _marginLeft || float.IsNaN(value)) + return; + _marginLeft = value; + base.OnPropertyChanged("MarginLeft"); + } + } } }