<localView:BeWoView x:Class="BeWo.View.Detail.AccountingTransactionEditView" 
                    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:val="clr-namespace:BeWo.Validation" xmlns:proxy="clr-namespace:BeWo.ServiceProxy" 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="500" Height="Auto">
		<!--uc:ShadowChrome-->
		<GroupBox Style="{StaticResource PopUpWindowStyle}">
			<GroupBox.Header>
				<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,0">
					<Image Source="..\..\Ressources\Icons\CoinsDisabled.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="Buchung bearbeiten" 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 AccountingContentBrush}" 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.ColumnDefinitions>
								<ColumnDefinition x:Name="customerComboColumn" Width="250" />
								<ColumnDefinition Width="*" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" />
							</Grid.RowDefinitions>

							<!--<ComboBox x:Name="customerComboBox" IsSynchronizedWithCurrentItem="True" 
                                      AlternationCount="-1" ItemTemplate="{DynamicResource CustomerComboBoxItemTemplate}" 
                                      SelectionChanged="customerComboBox_SelectionChanged" Height="62" 
                                      ItemsPanel="{DynamicResource CustomerComboBoxItemsPanelTemplate}" 
                                      Background="{DynamicResource SupportConceptListBrush}" HorizontalContentAlignment="Stretch" 
                                      Style="{DynamicResource ObjectComboBoxStyle}" />-->
                            <localViewControls:SingleSupportConceptSelectionControl x:Name="supportConceptSelectionControl" 
                                        ItemSelected="supportConceptSelectionControl_ItemSelected"  Height="62" VerticalAlignment="Top"
                                        HorizontalContentAlignment="Stretch" />
                            
							
							<!--Grid Grid.Row="1" Margin="0,0,0,0" >
	                                <Grid.ColumnDefinitions>
	                                    <ColumnDefinition Width="*"/>
	                                    <ColumnDefinition Width="Auto"/>
	                                </Grid.ColumnDefinitions>

	                                <TextBlock TextWrapping="Wrap" VerticalAlignment="Stretch" Text="{Binding Path=Information}" Foreground="#FF000000" Margin="0,35,0,0" />
	                                

	                            </Grid-->

							<Grid Grid.Column="1" Grid.RowSpan="2" VerticalAlignment="Top">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" MinWidth="57" />
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" MinHeight="25" />
									<RowDefinition Height="Auto" MinHeight="25" />
									<RowDefinition Height="Auto" MinHeight="25" />
									<RowDefinition Height="Auto" MinHeight="25" />
								</Grid.RowDefinitions>

								<Label Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Content="Betrag €" />
								<dxe:TextEdit MaskType="Numeric" Mask="c" MaskUseAsDisplayFormat="True" x:Name="txtAmount" Grid.Column="1" Grid.Row="0" Height="23" Margin="3" EditValue="{val:ValidationBinding Path=Amount, Mode=TwoWay}"/>
								<Label Content="Buchungsdatum" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" />
                                <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="1" Background="White" Height="23" Margin="3" EditValue="{val:ValidationBinding Path=BookingDate, Mode=TwoWay}" />
								
								<Label Content="Gültigkeitsdatum" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" />
                                <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="2" Background="White" Height="23" Margin="3" EditValue="{val:ValidationBinding Path=ValidityDate, Mode=TwoWay}" />

								<Label Grid.Row="3" Content="Kategorie" />
								<ComboBox Grid.Column="1" Height="23" Margin="3" Grid.Row="3" x:Name="combobox_categories" SelectedItem="{val:ValidationBinding Path=Category}" />

							</Grid>

						</Grid>


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

							<Label Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" Content="Kommentar" HorizontalAlignment="Left" Grid.ColumnSpan="2" />
							<TextBox x:Name="textbox_Notice" Grid.Column="0" Grid.Row="1" Grid.RowSpan="1" Text="{val:ValidationBinding Path=Notice, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Stretch" Margin="3" Grid.ColumnSpan="2" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap" AutoWordSelection="True" />


						</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="btnSave" Content="Speichern und schließen" Margin="0,0,3,0" Command="ApplicationCommands.Save" Height="25" />
					<Button x:Name="btnClose" Content="Abbrechen" Margin="0,0,3,0" Command="ApplicationCommands.Close" Height="25" />
				</StackPanel>
			</Grid>
		</GroupBox>
            
		<!--/uc:ShadowChrome-->
	</Grid>
</localView:BeWoView>