client/src/Iri.Modernisation.Controls/View/ContextualBinderLayer/ContextualBinderLayer.xaml.cs
changeset 28 2d4ec5ab2a40
parent 13 b5ee436add3d
child 35 43bb1b8ed555
--- a/client/src/Iri.Modernisation.Controls/View/ContextualBinderLayer/ContextualBinderLayer.xaml.cs	Mon Jan 04 10:29:39 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ContextualBinderLayer/ContextualBinderLayer.xaml.cs	Tue Jan 05 15:53:48 2010 +0100
@@ -42,7 +42,7 @@
 
         void  myDispatcherTimer_Tick(object sender, EventArgs e)
         {
- 	          LayoutRoot.Background = PolemicTypeColorConverter.Convert(_movingBinder.PolemicType);
+            LayoutRoot.Background = new SolidColorBrush(_movingBinder.PolemicType.Color);
                     LayoutRoot.Background.Opacity = 0.0;
                     _movingBinder.Visibility = Visibility.Visible;
                     _linkLine.Visibility = Visibility.Visible;
@@ -108,10 +108,10 @@
                 Y1 = temp.Y,
                 X2 = temp.X,
                 Y2 = temp.Y,
-                Stroke = PolemicTypeColorConverter.Convert(_movingBinder.PolemicType),
+                Stroke = new SolidColorBrush(_movingBinder.PolemicType.Color),
                 StrokeThickness = 2
             };
-            LayoutRoot.Background = PolemicTypeColorConverter.Convert(_movingBinder.PolemicType);
+            LayoutRoot.Background = new SolidColorBrush(_movingBinder.PolemicType.Color);
             LayoutRoot.Background.Opacity = 0.0;
             LayoutRoot.Children.Add(_movingBinder);
             LayoutRoot.Children.Add(_linkLine);