I want Image button with two state(normal , mouse over). that button must change image with Mouse Over event trigger automatically.
this image button must be a user control. Also i want to set image for each state form code in which form i use that user control.
Solution is using a template with “Value Converter” but i don’t know how?
I found This on Code-project-Article(Cool example)
http://www.codeproject.com/KB/WPF/WPF_xaml_taskbar_window.aspx
First He create Wpf-Custom-control(you can create class inherit from Button like this)
As second step you must Create template in resource-dictionary(here is code)
And this is last Step, in xaml file you must insert this custom-control
and in cs file do this
also we can change this image-source on btnconfig-click event
With special thanks from Murray-Foxcroft for create that article