Answering the follow-up Question: how to handle mouse hovering over the control either override
System.Windows.Controls.Control.OnMouseEnter
/
OnMouseLeave
or handle events
System.Windows.Controls.Control.MouseEnter
/
MouseLeave
.
Now I have a question to OP: how long do you plan to ask questions like that, on every feature you may possibly need? After all, look at the help on the class
System.Windows.Controls.Control
and ask some real questions if you still have problems. Just in case, take a look at
System.Windows.FrameworkElement
and related stuff.
See
http://msdn.microsoft.com/en-us/library/system.windows.controls.control.aspx[
^]
http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.aspx[
^]…
Do I have to explain how to do it? I can, always keep
appropriate reference handy…
—SA