<Window x:Class="ImageColumnTemplate.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:ImageColumnTemplate"
        WindowStartupLocation="CenterScreen"
        FontFamily="Segoe UI" FontSize="12"
        Title="C1FlexGrid: Column with bound images" Height="350" Width="525">
    
    <Window.Resources>
        <local:AlertImageConverter x:Key="AlertImageConverter" />
    </Window.Resources>

    <Grid>
        <c1:C1FlexGrid Name="_flex" AutoGenerateColumns="False" >
            <c1:C1FlexGrid.Columns>
                <c1:Column Header="Alert" Binding="{Binding Alert}" Width="*" />
                <c1:Column Header="Image" Width="*" >
                    <c1:Column.CellTemplate>
                        <DataTemplate>
                            <Image 
                                Margin="4" 
                                Source="{Binding Path=Alert, Converter={StaticResource AlertImageConverter}}"/>
                        </DataTemplate>
                    </c1:Column.CellTemplate>
                </c1:Column>
                <c1:Column Header="Message" Binding="{Binding Message}" Width="2*" />
            </c1:C1FlexGrid.Columns>
        </c1:C1FlexGrid>
    </Grid>
</Window>
