I have several buttons that does operations on an image. I need to put these buttons on top of the image. Buttons should be images themselves.
-
Button should be semi-transparent.
-
The image/color should be changed on a click, so that user can know which control is active.
-
On hovering over the button, the opacity should increase.
How can I do these. Any guideline on what way to proceed to create a custom control or what controls to use would be very helpful.
If I understand your requirements correctly, I think a ToggleButton should give you what you want.
Basically you need to create one semi-transparent
Borderfor mouse over visual and another semi-transparentBorderfor unchecked visual. Then in theVisualStateManger, when theMouseOverstate is active, you show theMouseOverVisual; when theUncheckedstate is active, you show theUncheckedVisual.I quickly mocked up a style for you in Expression Blend. It’s not perfect but at leasat will give you some ideas. 🙂