How do I make silverlight button transparent while showing the image?
        Posted  
        
            by jadoti
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jadoti
        
        
        
        Published on 2010-03-16T05:13:06Z
        Indexed on 
            2010/03/16
            5:16 UTC
        
        
        Read the original article
        Hit count: 705
        
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.
© Stack Overflow or respective owner