<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:r="http://mindfusion.eu/reporting/wpf"
	xmlns:l="clr-namespace:MindFusion.Reporting.Wpf.Samples.CS.LinqBinding">

	<l:LinqConverter x:Key="linqConverter" />
	<l:IntToBoolConverter x:Key="intToBoolConverter" />
	
	<r:Report x:Key="linqBoundReport" FontSize="12">
		<r:Page>

			<r:DataRange Size="100%,30" DataSource="{Binding Converter={StaticResource linqConverter}, ConverterParameter=Products}" Margin="0,0,0,2" Background="#FAFBFF" BorderBrush="#F1F2FF" BorderThickness="1">
				<r:DataRange.ItemTemplate>
					<DataTemplate>
						<r:ItemContainer>
							<r:Label Location="5,0" Size="30%,30" Text="[ProductName]" VerticalAlignment="Center" />
							<r:Label Location="40%,0" Size="15%,30" Text="[QuantityPerUnit]" VerticalAlignment="Center" Background="#EAEBFF" />
							<r:Label Location="60%,0" Size="10%,30" Text="[UnitPrice]" VerticalAlignment="Center" />
							<r:CustomReportItem Location="75%,0" Size="10%,30" Value="[CInt(Discontinued)]" VerticalAlignment="Center">
								<r:CustomReportItem.Template>
									<DataTemplate>
										<CheckBox IsEnabled="False" IsChecked="{Binding Path=., Converter={StaticResource intToBoolConverter}}" VerticalAlignment="Center" />
									</DataTemplate>
								</r:CustomReportItem.Template>
							</r:CustomReportItem>
						</r:ItemContainer>
					</DataTemplate>
				</r:DataRange.ItemTemplate>
			</r:DataRange>

		</r:Page>
	</r:Report>

</ResourceDictionary>