Arun G

Arun G

  • NA
  • 1
  • 1.9k

How to display a image on mouse over in silverlight data grid

May 3 2012 9:58 AM
        I need to display a image on mouse over only in silverlight 5. Can any one please help me. Give me any idea how to achieve it...

<sdk:DataGridTemplateColumn x:Name="colDeleteContent" IsReadOnly="True" Header="Delete Content" Width="100" CanUserResize="False">
 
<sdk:DataGridTemplateColumn.CellTemplate>
 
<DataTemplate>
   
<StackPanel x:Name="spDeleteContent" VerticalAlignment="Center" Margin="10,0,0,0" Width="20" Height="20" HorizontalAlignment="Center" Orientation="Vertical">                                                            
   
<Image x:Name="imgDeleteContent" Source="Assets/Images/close.png" Height="15" Width="15" Margin="0" MouseLeftButtonDown="imgDeleteContent_MouseLeftButtonDown" Cursor="Hand"/>                                                            
   
</StackPanel>
 
</DataTemplate>
 
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>