How do I make silverlight button transparent while showing the image?
- by jadoti
I have a button that is programatically created, it's content is a stack panel with an image and a textblock. This all works great.
I want to make the button behind the image and text transparent, so that the image and text looks like it's sitting on the background, but still have all the properties of the button (i.e. someone clicks in the button region it still registers the button click event).
I have been playing with opacities, but every opacity I play with dealing with the button seems to set the whole button (image and text included) to that opacity value as well.
How can I make the button opaque while making the text and image content still visible?
Oh, this is silverlight 3. Thanks in advance.