client/src/Iri.Modernisation.Controls/View/PolemicElement.xaml.cs
changeset 29 5f8d275750e7
parent 20 c2dd8119a6c1
--- a/client/src/Iri.Modernisation.Controls/View/PolemicElement.xaml.cs	Tue Jan 05 15:53:48 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/PolemicElement.xaml.cs	Fri Jan 08 11:33:24 2010 +0100
@@ -20,13 +20,18 @@
             
             InitializeComponent();
             MouseEnter += new MouseEventHandler(PolemicElementControl_MouseEnter);
-           
+            MouseLeave += new MouseEventHandler(PolemicElementControl_MouseLeave);
       
         }
 
+        void PolemicElementControl_MouseLeave(object sender, MouseEventArgs e)
+        {
+            LayoutRoot.Background.Opacity = 1;
+        }
+
         void PolemicElementControl_MouseEnter(object sender, MouseEventArgs e)
         {
-            //throw new NotImplementedException();
+            LayoutRoot.Background.Opacity = 0.5;
         }