# HG changeset patch
# User sarias
# Date 1255721836 -7200
# Node ID d5148710e229890d05bba5604404cc60919827c9
# Parent 0b9f989bcb3768566e00d6ac194868d1767f490a
Display Annotations with storyboard effect
diff -r 0b9f989bcb37 -r d5148710e229 src/FingersDance.Control.Player/UserControlPlayer.xaml
--- a/src/FingersDance.Control.Player/UserControlPlayer.xaml Fri Oct 16 21:06:25 2009 +0200
+++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml Fri Oct 16 21:37:16 2009 +0200
@@ -124,7 +124,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -137,11 +173,11 @@
Style="{DynamicResource FingersDance.Control.PlayerButton}" Margin="0,0,54,0"/>
-
-
-
-
-
+
+
+
+
+
diff -r 0b9f989bcb37 -r d5148710e229 src/FingersDance.Control.Player/UserControlPlayer.xaml.cs
--- a/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Fri Oct 16 21:06:25 2009 +0200
+++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Fri Oct 16 21:37:16 2009 +0200
@@ -260,12 +260,26 @@
//This function Sets a brush in a specific rectangle of the StackPanelAnnotation
public void displayStackPanelAnnotations(int id, Brush brushAnnotation)
{
+ Object o = null;
switch (id)
{
- case 1: rect1.Fill = brushAnnotation; break;
- case 2: rect2.Fill = brushAnnotation; break;
- case 3: rect3.Fill = brushAnnotation; break;
- case 4: rect4.Fill = brushAnnotation; break;
+ case 1:
+ rect1.Fill = brushAnnotation;
+ o = rect1.FindResource("Rect1Annotation");
+ rect1.BeginStoryboard((Storyboard)o);
+ break;
+ case 2: rect2.Fill = brushAnnotation;
+ o = rect2.FindResource("Rect2Annotation");
+ rect2.BeginStoryboard((Storyboard)o);
+ break;
+ case 3: rect3.Fill = brushAnnotation;
+ o = rect3.FindResource("Rect3Annotation");
+ rect3.BeginStoryboard((Storyboard)o);
+ break;
+ case 4: rect4.Fill = brushAnnotation;
+ o = rect4.FindResource("Rect4Annotation");
+ rect4.BeginStoryboard((Storyboard)o);
+ break;
default: break;
}
}