client/src/Iri.Modernisation.Controls/View/PolemicElement.xaml.cs
author totetm <>
Fri, 08 Jan 2010 11:33:24 +0100
changeset 29 5f8d275750e7
parent 20 c2dd8119a6c1
permissions -rw-r--r--
After SL4 Convertion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Iri.Modernisation.BaseMVVM.Commands;
namespace Iri.Modernisation.Controls.View
{
    public partial class PolemicElementControl : MenuableUserControl
    {
        public PolemicElementControl()
            : base()
        {
            
            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)
        {
            LayoutRoot.Background.Opacity = 0.5;
        }

       
       

     
    }

}