Hello
Based on this below the Download Document Column will show text "Dowload"
I want to keep an image there and when clicked as per the NavigateUri the link will work.
How do i show the user a download.png per say in that column,.
<ig:XamGrid.Columns> <ig:UnboundColumn Key="Download Document"> <ig:UnboundColumn.ItemTemplate> <DataTemplate> <HyperlinkButton Content="Download" NavigateUri="{Binding RowData.DocLink}" TargetName="_blank"></HyperlinkButton> </DataTemplate> </ig:UnboundColumn.ItemTemplate> </ig:UnboundColumn> <ig:HyperlinkColumn Key="DocLink" HeaderText="Document Link" Width="130" IsSummable="False" TargetName="_blank" Visibility="Collapsed"/> <ig:TextColumn Key="DocName" HeaderText="Name" Width="150" IsSummable="False"/>
Hello Ray,
I am just checking if you require any further assistance on the matter.
Tried this but no luck
The image does not appear.
<ig:HyperlinkColumn Key="DocLink" HeaderText="Document Link" Width="130" IsSummable="False" TargetName="_blank" Visibility="Collapsed"/>
<ig:UnboundColumn Key="Download Document">
<HyperlinkButton NavigateUri="{Binding RowData.DocLink}" TargetName="_blank"> <HyperlinkButton.Content> <StackPanel Orientation="Horizontal"> <Image Source="Images/Download.gif" /> <sdk:Label Content="Download"></sdk:Label> </StackPanel> </HyperlinkButton.Content> </HyperlinkButton> </DataTemplate> </ig:UnboundColumn.ItemTemplate> </ig:UnboundColumn>
I am good, Thx for checking.
One thing to remember to developers, GIF images are not supported by Silverlight. It is a MS thing and not Infragistics specific.
Ray
You cannot use GIF files in HyperlinkButton because Silverlight does not support GIF files. I can suggest you use JPG or PNG files.
You can look through the following MSDN forum thread where this is discussed :
http://social.msdn.microsoft.com/Forums/en-SG/wpf/thread/79ce1eea-009d-47eb-8637-3210d7f30f6d
If you have any other question on this matter, feel free to ask.
I did see his sample.
I did not want to have biding and cs code
I got it working, Wish some one told direct answer that GIF images wont work.
i had the same image as a png and then it works.
<HyperlinkButton.Content> <StackPanel Orientation="Horizontal"> <Image Source="/CAInfo;component/Images/save.PNG" /> <sdk:Label Content="Download"></sdk:Label></StackPanel></HyperlinkButton>
GIF does not work for me.
<Image Source="/CAInfo;component/Images/save.gif" />
Thanks for the support.
Hello,
Have you tried Stefan's sample application?
Looking forward to hearing from you.