<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1DataGrid_Demo2010.Hyperlinks" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c1DataGrid="clr-namespace:C1.Silverlight.DataGrid;assembly=C1.Silverlight.DataGrid.5">

    <StackPanel>
        <c1DataGrid:C1DataGrid x:Name="grid" AutoGenerateColumns="False" SelectionMode="None" HeadersVisibility="Column" IsReadOnly="True" RowHeight="30">
            <c1DataGrid:C1DataGrid.Columns>
                <c1DataGrid:DataGridHyperlinkColumn Header="Simple hyperlink" Binding="{Binding Link}" FilterMemberPath="Link" />
                <c1DataGrid:DataGridHyperlinkColumn Header="Fixed text" Binding="{Binding Link}" FilterMemberPath="Link">
                    <c1DataGrid:DataGridHyperlinkColumn.ContentTemplate>
                        <DataTemplate>
                            <TextBlock Text="edit" />
                        </DataTemplate>
                    </c1DataGrid:DataGridHyperlinkColumn.ContentTemplate>
                </c1DataGrid:DataGridHyperlinkColumn>
                <c1DataGrid:DataGridHyperlinkColumn Header="Fixed icon" Binding="{Binding Link}" FilterMemberPath="Link">
                    <c1DataGrid:DataGridHyperlinkColumn.ContentTemplate>
                        <DataTemplate>
                            <Image Source="http://icons.iconarchive.com/icons/custom-icon-design/pretty-office-8/256/Link-icon.png" Stretch="Uniform" Height="24" />
                        </DataTemplate>
                    </c1DataGrid:DataGridHyperlinkColumn.ContentTemplate>
                </c1DataGrid:DataGridHyperlinkColumn>
                <c1DataGrid:DataGridHyperlinkColumn Header="Dynamic icon" Click="DataGridHyperlinkColumn_Click" FilterMemberPath="Link">
                    <c1DataGrid:DataGridHyperlinkColumn.ContentTemplate>
                        <DataTemplate>
                            <Image Source="{Binding LinkImage}" />
                        </DataTemplate>
                    </c1DataGrid:DataGridHyperlinkColumn.ContentTemplate>
                </c1DataGrid:DataGridHyperlinkColumn>
            </c1DataGrid:C1DataGrid.Columns>
        </c1DataGrid:C1DataGrid>
        <TextBlock x:Name="msg" Foreground="Red" />
    </StackPanel>
</UserControl>