--- a/src/FingersDance.Views/TimelineView.xaml.cs Wed Oct 21 16:28:49 2009 +0200
+++ b/src/FingersDance.Views/TimelineView.xaml.cs Thu Oct 22 14:48:43 2009 +0200
@@ -28,7 +28,20 @@
InitializeComponent();
}
+ public Double ScaleX
+ {
+ get { return ((ScaleTransform)listview.RenderTransform).ScaleX; }
+ set{
+ // We set the scale to the list view
+ listview.RenderTransform = new ScaleTransform(value, 1);
+ // We inform each annotation that scale has been changed
+ foreach (AnnotationViewModel a in listview.Items)
+ {
+ //Console.WriteLine("a = " + a);
+ a.ScaleX = 1 / value;
+ }
+ }
+ }
-
}
}