diff -r f292db96b050 -r 2d4ec5ab2a40 client/src/Iri.Modernisation.Controls/View/ContextualBinderLayer/ContextualBinderLayer.xaml.cs --- 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);