I want change the content of the button to another image when it is pressed but nothing happens.
<Grid>
<Button Height="120" Width="75">
<Button.Template>
<ControlTemplate TargetType="Button">
<Image Source="no-press.png"/>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Content">
<Setter.Value>
<DataTemplate>
<Image Source="press.png"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
</Grid>
thank you :)
Here you go: