<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1DataGrid_Demo2010.AsyncValidation" mc:Ignorable="d" d:DataContext="{d:DesignData Source=/DesignData/SampleOrders.xaml}" 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:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:C1DataGrid_Demo2010">
    <UserControl.Resources>
       
		<local:MyConverter x:Key="myConverter" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Border Margin="0 0 0 10">
            <CheckBox Content="Show Validation Indicators" IsChecked="{Binding ShowValidationIndicators, ElementName=grid, Mode=TwoWay}" VerticalAlignment="Center" />
        </Border>
		<c1:C1DataGrid x:Name="grid" AutoGeneratingColumn="grid_AutoGeneratingColumn" LoadingRow="grid_LoadingRow" RowHeight="25" Grid.Row="1" ItemsSource="{Binding}">
			<c1:C1DataGrid.Columns>
				<c1:DataGridTemplateColumn Width="Auto">
					<c1:DataGridTemplateColumn.CellTemplate>
						<DataTemplate>
							<Button Content="Deliver" Visibility="{Binding Available,Converter={StaticResource myConverter}}" Margin="1" />
						</DataTemplate>
					</c1:DataGridTemplateColumn.CellTemplate>
				</c1:DataGridTemplateColumn>
			</c1:C1DataGrid.Columns>
		</c1:C1DataGrid>
	</Grid>
</UserControl>