<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.Portfolio">

	<r:Report x:Key="portfolio" MeasureUnit="Millimeter">
		<r:Page>

			<r:DataRange Size="100%,190" DataSource="{Binding Employees}">
				<r:DataRange.Resources>
					<l:ImageConverter x:Key="imageConverter" />
				</r:DataRange.Resources>
				<r:DataRange.ItemTemplate>
					<DataTemplate>
						<r:ItemContainer>
							<r:CustomReportItem Size="100%,190">
								<r:CustomReportItem.Template>
									<DataTemplate>
										<Path Stretch="Fill" Data="M 0,0 L 1,0 L 1,0.42 C 0.5,0.35 0.3,0.7 0.15,1 L 0,1 z" Fill="#B4B6FF" />
									</DataTemplate>
								</r:CustomReportItem.Template>
							</r:CustomReportItem>
							<r:Picture Location="15,20" Size="90,120" Image="{Binding Photo, Converter={StaticResource imageConverter}}" BorderBrush="Black" BorderThickness="1">
								<r:Picture.RenderTransform>
									<RotateTransform Angle="355" CenterX="37.5" CenterY="50" />
								</r:Picture.RenderTransform>
								<r:Picture.Effect>
									<DropShadowEffect Opacity="0.4" />
								</r:Picture.Effect>
							</r:Picture>
							<r:Label Location="50%,10" Size="90*,44" Text="[Notes]" FontSize="14" />
							<r:Label Location="0%,160" Size="100%,24" Text="[FirstName] [LastName]" Background="#009900" BorderBrush="#004000" BorderThickness="0,5,0,5" Padding="20,0,0,0" VerticalAlignment="Center" FontSize="32" />
							<r:Label Location="50%,86" Size="90*,26" Text="&lt;color=#666666&gt;Phone:&lt;/color&gt; &lt;b&gt;[HomePhone]&lt;/b&gt;&#13;&lt;color=#666666&gt;Address:&lt;/color&gt; &lt;b&gt;[Address], [City], [Country]&lt;/b&gt;&#13;&lt;color=#666666&gt;Age:&lt;/color&gt; &lt;b&gt;[DateDiff(&quot;y&quot;, Now(), BirthDate)]&lt;/b&gt;" FontSize="14" />
						</r:ItemContainer>
					</DataTemplate>
				</r:DataRange.ItemTemplate>
			</r:DataRange>

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

</ResourceDictionary>