src/FingersDance.Views/TimelineView.xaml.cs
changeset 169 3a407c966e57
parent 167 206f07a8d887
--- a/src/FingersDance.Views/TimelineView.xaml.cs	Sun Oct 25 12:38:45 2009 +0100
+++ b/src/FingersDance.Views/TimelineView.xaml.cs	Sun Oct 25 12:55:07 2009 +0100
@@ -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;
+                }
+            }
+        }
         
-
     }
 }