<DataTemplate x:Key="MyDataTemplate" DataType="DataRowView"> <StackPanel Orientation="Horizontal" removed="Transparent"> <Image Margin="0,0,0,0" Width="50" Height="50" Source="{Binding Converter={StaticResource SetImgToDG}}" ToolTip="{Binding}" > <Image.Resources> <Style TargetType="{x:Type Image}"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <!-- Hover image --> <Setter Property="Cursor" Value="Hand"/> <Setter Property="Source" Value="C:\Images\Coil3.png"/> </Trigger> </Style.Triggers> </Style> </Image.Resources> </Image> </StackPanel> </DataTemplate>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)