Cambiar background de button c# wpf
Buenos das, antes que nada agradezco a quienes me han apoyado con sus prontas respuestas y espero que en esta ocasión igual me puedan ayudar, estoy trabajando con botones en C# y plataforma WPF, la duda que tengo es como poder cambiar la imagen de fondo del botón al pasar el cursor sobre el mismo, Ya que el botón tiene una imagen y quiero que al pasar el cursor sobre el esta imagen se cambie por otra, lo intente con el evento MouseEnter y solo me funciono con colores sólidos. Bueno me despido esperando me puedan ayudar y de antemano gracias.
Selva GanapathyPosted Dec 12, 2014, 1:23 AM
Hi Roman,
Cool.... Fine :)
Regards,
Selva Ganapathy K
Roman BadilloPosted Dec 11, 2014, 2:53 PM
Selva GanapathyPosted Dec 11, 2014, 6:18 AM
Hi Roman Badillo,
Use the following code snippet for your requirement
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
Regards,
Selva Ganapathy K
Praveen KumarPosted Dec 10, 2014, 10:28 PM
Good afternoon , first of all I thank those who have supported me with their prompt replies and I hope that this time like you can help me , I'm working with buttons on C # and WPF platform , the question I have is how to change the background image button when hovering over it, now that the button has an image and want it to hover over the image is changed to another, try the MouseEnter event and I only worked with solid colors . Well I leave hoping you can help me and thanks in advance .