<localView:BeWoView x:Class="BeWo.View.Search.SimplePersonSearchView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:uc="clr-namespace:CWSoft.Controls;assembly=CWSoft.Controls"
    xmlns:local="clr-namespace:BeWo.Core"
    xmlns:localView="clr-namespace:BeWo.View"
    Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">

    <localView:BeWoView.CommandBindings>
        <CommandBinding  Command="local:BeWoCommands.Excel" Executed="ExcelCommand_Executed" CanExecute="ExcelCommand_CanExecute"/>
        <CommandBinding Command="ApplicationCommands.Open" Executed="OpenCommand_Executed" CanExecute="OpenCommand_CanExecute"/>
    </localView:BeWoView.CommandBindings>
	<GroupBox Style="{DynamicResource MainContentGroupBoxStyle}" Header="Klienten">
		<GroupBox Style="{DynamicResource PersonSearchGroupBoxStyle}">
	        <GroupBox.Header>
	            <StackPanel Orientation="Horizontal">
	                <Label Content="Suche:" Foreground="#FFFFFFFF" FontSize="14" />
	                <TextBox Height="20" x:Name="textbox_search" MinWidth="90" Margin="3,0,0,0" Width="300" TabIndex="0" TextChanged="textbox_search_TextChanged" Template="{DynamicResource SearchTextBoxTemplate}" BorderThickness="0,0,0,0"/>
	            </StackPanel>
	            
	        </GroupBox.Header>
		    <Grid x:Name="MainContentGrid" Margin="10 3">
		        <Grid.RowDefinitions>
		            <RowDefinition Height="Auto" />
		            <RowDefinition Height="*" />
					<RowDefinition Height="Auto" />
		        </Grid.RowDefinitions>
		        <Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
		            <ColumnDefinition Width="*" />
					<ColumnDefinition Width="250" />
		        </Grid.ColumnDefinitions>
				<StackPanel Orientation="Horizontal" >
					<TextBlock HorizontalAlignment="Left" Text="{Binding Count}" FontFamily="Microsoft Sans Serif" FontSize="14"/>
					<TextBlock HorizontalAlignment="Left" Text=" Suchergebnisse" FontFamily="Microsoft Sans Serif" FontSize="14"/>
				</StackPanel>
				<ListBox x:Name="listPerson" IsSynchronizedWithCurrentItem="True" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" MinWidth="300" MinHeight="300" Margin="0,10,0,0" TabIndex="1" AlternationCount="-1" Style="{DynamicResource PersonListBox}" Background="{x:Null}" ItemsSource="{Binding}"/>
				<StackPanel Grid.Column="3" Margin="5,0,5,0">
					<TextBlock HorizontalAlignment="Left" Text=" Zuletzt angesehen" FontFamily="Microsoft Sans Serif" FontSize="14"/>
					<Path Data="M 0,0 H 250" Stroke="#FFFB6F0E" />
				</StackPanel>
				<Border Grid.Row="2" Grid.ColumnSpan="3" Height="40" Margin="0,10,0,0" VerticalAlignment="Stretch" Background="#FF000000">
					<Border.OpacityMask>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#19000000" Offset="0"/>
							<GradientStop Color="#33FFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Border.OpacityMask>
					
				</Border>
				<StackPanel Grid.ColumnSpan="3" Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Stretch" Height="40" Margin="0,10,0,0">
						<Button Content="Neu" Style="{StaticResource SearchToolbarButtonStyle}" Margin="3,0,0,0"/>
						<Button Content="Bearbeiten" Style="{StaticResource SearchToolbarButtonStyle}" Margin="10,0,0,0"/>
						<Button Content="Löschen" Style="{StaticResource SearchToolbarButtonStyle}" Margin="10,0,0,0"/>
				</StackPanel>
		        
		    </Grid>
		</GroupBox>
	</GroupBox>
</localView:BeWoView>
