I have defined a button with a image in it (in a wp7 app). I want to be able to click it, but I don’t want it to flicker when it’s clicked. Is it possible?
<Button Name="imageButton" BorderThickness="0" Height="80" Width="80" Margin="0,-10,0,0" Clip="">
<Image Source="{Binding favoriteIcon}" Width="35" Height="35" Stretch="Uniform"/>
</Button>
By the ‘flicker’ effect I presume you mean the way that the colour of the button becomes inverted when clicked?
This behaviour is defined in the Button template, sorry for the huge block of code, but here it is with the part that causes this effect highlighted:
You can create a copy of this template and removed the ‘Pressed’ state effects to remove it.