I am trying to change an Image's Source property whenever the image is disabled/enabled. I checked this out and that worked, whenever the image is disabled the opacity is changed. However, as soon as I try to set the Source property, it just does not work. It is ignored. That's my markup:
<Image Source="/My_Project;component/Images/countdown.png" Width="75"> <Image.Style> <Style TargetType="Image"> <Style.Triggers> <Trigger Property="IsEnabled" Value="False"> <Setter Property="Source" Value="/My_Project;component/Images/countdown.disabled.png"/> <!-- does not work --> <!-- <Setter Property="Opacity" Value="0"/> this works! --> </Trigger> </Style.Triggers> </Style> </Image.Style> </Image> Am I missing something? Is it even possible to change the Source property?