forum

Home / DeveloperSection / Forums / Button image background disappears when on hover

Button image background disappears when on hover

Anonymous User 2805 23-Dec-2013

When I create a button with a background and I hover over with my mouse, the background image disappears. Is there a way to override or cancel this process? I also read that I could set the image as content of the button, however I couldn't get the scaling right (filling the button) programmatically. Thanks in advance.                                  

How I set the background:

BitmapImage bitmapImage = new BitmapImage(new Uri("http://www." + link + ".jpg"));
videoButton.Background = new ImageBrush()
{
   ImageSource = bitmapImage
};

c# c# 
Updated on 03-Apr-2019
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By