src/FingersDance.Views/TimelineAnnotationView.xaml.cs
changeset 160 e940ca798fe3
parent 150 569925b65604
child 167 206f07a8d887
--- a/src/FingersDance.Views/TimelineAnnotationView.xaml.cs	Fri Oct 16 09:02:04 2009 +0200
+++ b/src/FingersDance.Views/TimelineAnnotationView.xaml.cs	Fri Oct 16 15:56:09 2009 +0200
@@ -55,14 +55,14 @@
             return 1.0;
         }
     }
-
+    
     public class ColorConverter : IValueConverter
     {
         public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
         {
-            UInt32 argb = (UInt32)value;
-            Color c = Color.FromArgb((Byte)((argb >> 24) & 0xFF), (Byte)((argb >> 16) & 0xFF), (Byte)((argb >> 8) & 0xFF), (Byte)(argb & 0xFF));
-            SolidColorBrush scb = new SolidColorBrush(c);
+            //UInt32 argb = (UInt32)value;
+            //Color c = Color.FromArgb((Byte)((argb >> 24) & 0xFF), (Byte)((argb >> 16) & 0xFF), (Byte)((argb >> 8) & 0xFF), (Byte)(argb & 0xFF));
+            SolidColorBrush scb = new SolidColorBrush((Color)value);
             return scb;
         }
         public object ConvertBack(object value, Type targetTypes, object parameter, System.Globalization.CultureInfo culture)