<localView:BeWoView x:Class="BeWo.View.Detail.CustomerHistoryView" 
                    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:localViewControls="clr-namespace:BeWo.View.Controls" 
                    xmlns:localSearchView="clr-namespace:BeWo.View.Search"
                    xmlns:val="clr-namespace:BeWo.Validation" 
                    xmlns:proxy="clr-namespace:BeWo.ServiceProxy" 
                    xmlns:shared="clr-namespace:BS.Shared.DataContracts;assembly=BS.Shared" 
                    xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" 
                    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" 
                    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
                    Height="Auto" Width="Auto" HorizontalAlignment="Stretch" xmlns:s="clr-namespace:System;assembly=mscorlib" VerticalAlignment="Stretch" Focusable="True" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">

	<Grid Width="Auto" Height="Auto" x:Name="root">
    <GroupBox Style="{StaticResource PopUpWindowStyle}">
			<GroupBox.Header>
				<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0">
					<Image Source="..\..\Ressources\Icons\HistoryDisabled.png" RenderTransformOrigin="0.5,0.5" Width="Auto" Height="28" Margin="0,0,0,0">
						<Image.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1" />
								<SkewTransform AngleX="0" AngleY="0" />
								<RotateTransform Angle="0" />
								<TranslateTransform X="0" Y="0" />
							</TransformGroup>
						</Image.RenderTransform>
					</Image>
					<TextBox Text="Versionsgeschichte dieser Zeiterfassung" Margin="10,4,0,0" Background="{x:Null}" Foreground="{DynamicResource MainGroupBoxForegroundBrush}" FontSize="20" BorderBrush="{x:Null}" VerticalAlignment="Stretch" BorderThickness="0,0,0,0" Padding="0,0,0,0" />
				</StackPanel>
			</GroupBox.Header>
			<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="*" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<Rectangle Fill="{DynamicResource ServiceRecordContentBrush}" Height="6" />
				<Grid x:Name="rootGrid" Grid.Row="1" Margin="10,10,10,0">

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

						<Grid Grid.Row="1" Margin="0,0,0,0">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" />
							</Grid.RowDefinitions>

              <GroupBox x:Name="GroupBoxServiceRecordHistoryGrid" Header="Versionsgeschichte" Grid.Row="2" Style="{StaticResource ObjectEditGroupBox}" Margin="0 20 0 0" MinHeight="120">
                <dxg:GridControl VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="datagrid_ServiceRecordHistory">
                  <dxg:GridControl.Columns>
                    <dxg:GridColumn AllowEditing="False" FieldName="TimeStamp" Header="Änderungsdatum" ReadOnly="True" EditSettings="{dxe:DateSettings DisplayFormat=dd.MM.yyyy HH:mm}" />
                    <dxg:GridColumn AllowEditing="False" FieldName="InsUser" Header="Mitarbeiter" ReadOnly="True" />
                    <dxg:GridColumn AllowEditing="False" FieldName="HistoryTypeString" Header="Art der Änderung"  ReadOnly="True" />
                    <dxg:GridColumn AllowEditing="False" FieldName="Customer" Header="Klient/in"  ReadOnly="True" />
                    <dxg:GridColumn AllowEditing="False" FieldName="SupportConcept" Header="Hilfeplan"  ReadOnly="True" />
                    <dxg:GridColumn AllowEditing="False" FieldName="Organisation.Name" Header="Kostenträger"  ReadOnly="True" />
                    <dxg:GridColumn AllowEditing="False" FieldName="ServiceDescription.Category" Header="Leistungskategorie"  ReadOnly="True" />
                    <dxg:GridColumn AllowEditing="False" FieldName="ServiceDescription" Header="Leistung" ReadOnly="True" />
                    <dxg:GridColumn AllowEditing="False" FieldName="Start" Header="Datum" ReadOnly="True" EditSettings="{dxe:DateSettings DisplayFormat=dd.MM.yyyy}"/>
                    <dxg:GridColumn AllowEditing="False" FieldName="StartDate" Header="Start" ReadOnly="True" EditSettings="{dxe:DateSettings DisplayFormat=HH:mm}"/>
                    <dxg:GridColumn AllowEditing="False" FieldName="EndDate" Header="Ende" ReadOnly="True" EditSettings="{dxe:DateSettings DisplayFormat=HH:mm}"/>
                    <dxg:GridColumn AllowEditing="False" FieldName="RoundedDuration" Header="Dauer" ReadOnly="True" EditSettings="{dxe:TextSettings DisplayFormat=0}"/>
                    <dxg:GridColumn AllowEditing="False" FieldName="Notice" Header="Dokumentation" ReadOnly="True"/>
                  </dxg:GridControl.Columns>
                  <dxg:GridControl.View>
                    <dxg:TableView x:Name="GridView" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" />
                  </dxg:GridControl.View>
                </dxg:GridControl>
              </GroupBox>
						</Grid>
					</Grid>
				</Grid>
				<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="Center" Height="Auto" Margin="5,10,0,0" HorizontalAlignment="Right">
					<Button x:Name="btnClose" Content="Schließen" Margin="0,0,3,0" Command="ApplicationCommands.Close" Height="25" />
				</StackPanel>
			</Grid>
		</GroupBox>
	</Grid>
</localView:BeWoView>