client/src/Iri.Modernisation.Controls/View/HeaderControl/HeaderControl.xaml.cs
author Matthieu Totet
Mon, 23 Nov 2009 14:52:34 +0100
changeset 9 185e3ab53a56
parent 0 249d70e7b32d
permissions -rw-r--r--
HeaderControl : Display and Hide Buttons' Title

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;

namespace Iri.Modernisation.Controls.View
{
    public partial class HeaderControl : UserControl
    {
        public HeaderControl()
        {
            InitializeComponent();
        }
        private void ButtonSeven_MouseMove(object sender, MouseEventArgs e)
        {
            ButtonHeaderControl button = sender as ButtonHeaderControl;
            if (button == null) return;

            textInfo.Text = button.Title;

        }

       
        private void ButtonSeven_MouseLeave(object sender, MouseEventArgs e)
        {
            textInfo.Text = "";
        }
    }
}