<localView:BeWoView x:Class="BeWo.View.Report.Finance.OutstandingReceivablesView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:localView="clr-namespace:BeWo.View" xmlns:localAnalysisView="clr-namespace:BeWo.View.Report.Finance" xmlns:conv="clr-namespace:BeWo.Converter" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">
	<Grid>
		<GroupBox Style="{StaticResource ObjectEditGroupBox}" Header="Offene Forderungen">

			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="*" />
				</Grid.RowDefinitions>


				<StackPanel Orientation="Vertical">
					<StackPanel Orientation="Horizontal">
						<Label Content="Suche" FontSize="14" Margin="0,0,0,0" />
						<TextBox Height="20" x:Name="textbox_search" MinWidth="90" Margin="3,0,0,0" Width="300" TabIndex="0" Template="{DynamicResource SearchTextBoxTemplate}" BorderThickness="0,0,0,0" />
						<Button Content="Aktualisieren" Margin="5,0,0,0" x:Name="buttonRefresh" Click="buttonRefresh_Click" />
					</StackPanel>
					<CheckBox FontFamily="Microsoft Sans Serif" FontSize="12" Margin="0,3,0,0" Content="Nur offene Forderungen anzeigen" VerticalAlignment="Center" x:Name="chkShowOnlyOutstandingReceivables" />
					<CheckBox FontFamily="Microsoft Sans Serif" FontSize="12" Margin="0,3,0,0" Content="Nur archivierte Hilfepläne anzeigen" VerticalAlignment="Center" x:Name="chkShowArchived" />
				</StackPanel>


				<Border Grid.Row="1" Background="{StaticResource AccountingContentBrush}" CornerRadius="2" Margin="0,8,0,0">
					<ListView BorderThickness="0" HorizontalContentAlignment="Stretch" ScrollViewer.CanContentScroll="False" Background="Transparent" HorizontalAlignment="Stretch" SelectionChanged="listview_list_SelectionChanged" VerticalAlignment="Stretch" Name="listview_list">
						<ListView.ItemTemplate>
							<DataTemplate>
								<localAnalysisView:OutstandingReceivablesListViewItem OverviewItem="{Binding}" />
							</DataTemplate>
						</ListView.ItemTemplate>
						<ListBox.ItemsSource>
							<MultiBinding x:Name="listBoxMultiBinding">
								<MultiBinding.Converter>
									<conv:FinanceOverviewItemConverter />
								</MultiBinding.Converter>
								<Binding />
								<Binding ElementName="textbox_search" Path="Text" />
								<Binding ElementName="chkShowOnlyOutstandingReceivables" Path="IsChecked" />
								<Binding ElementName="chkShowArchived" Path="IsChecked" />
							</MultiBinding>
						</ListBox.ItemsSource>
					</ListView>
				</Border>
			</Grid>
		</GroupBox>
	</Grid>
</localView:BeWoView>