How can I change the color of an image in silverlight/WP7 (Color Mask)?

前端 未结 2 1043
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 01:26

I have a toggle button with a png that has a transparent background and a black foreground. If the button is selected then I want the black color of the image to change to a col

2条回答
  •  借酒劲吻你
    2021-02-02 01:51

    I would try OpacityMask approach. Basicaly it should look something like this:

    
      
        
      
    
    

    by changing rectangle's fill property you would get different colored image.

提交回复
热议问题